Skip to main content
View by: Most Recent | Topic | Community | Webloggers   
Monthly Archives:    

Blogs by topic J2SE and user opinali

• Accessibility • Ajax • Blogging • Business • Community 
• Databases • Deployment • Distributed • Eclipse • Education 
• EJB • Extreme Programming • Games • GlassFish • Grid 
• GUI • IDE • Instant Messaging • J2EE • J2ME 
• J2SE • Jakarta • JavaFX • JavaOne • Jini 
• JSP • JSR • JXTA • LDAP • Linux 
• Mobility • NetBeans • Open Source • OpenSolaris • OSGi 
• P2P • Patterns • Performance • Porting • Programming 
• Research • RMI • RSS Feeds • Search • Security 
• Servlets • Struts • Swing • Testing • Tools 
• Virtual Machine • Web Applications • Web Design • Web Development Tools • Web Services and XML 


GUI

In my last blog I’ve introduced JavaFX 2.0 beta, describing an initial port of JavaFX Balls, also in beta stage at that time. Now I finally finish JavaFX Balls 3. Look ma, no design! I don’t pretend to be a designer, and the consequence is that when I make a mashup of animation, video and web, that’s the result. Get the source code here. I’ve added new layers of content...
on Nov 25, 2011
The biggest announcement - and the biggest surprise for many - of JavaOne 2010 was certainly Oracle's new plans for JavaFX 2.0... or, should we say, Swing 2.0? The history of JavaFX has been contentious since its beginning, when it was clear that FX was a new toolkit, even a new platform, while most people in the brave Swing community wanted a "Swing 2.0". Well, this is basically what...
on Sep 23, 2010
I've finished the development of my Game of Life, with a couple final fixes and new features... including a solution to the bad performance reported before. Once again the work has uncovered some surprises; read on. Un-Scripting JavaFX Script The first version used a "scriptish" style, all code thrown in a single .fx file, only average effort in structure. Now I have three files: World....
on Jun 4, 2010
Performance: JavaFX Balls As soon as I've got JavaFX 1.3 and NetBeans 6.9-beta, first thing I did was obviously running benchmarks, and the new update delivers on its promise. Let's first check JavaFX Balls (port of Bubblemark). I've last reported results for 1.2 here; but scores for 1.2 are updated again to account for changes in my test system, remarkably the JDK (now 6u21-ea-b03). Test...
on May 3, 2010

Programming

JavaFX 2.0 is not multiplatform! It can't do subpixel antialiasing!! … these were among the reactions to the first beta releases, that I'm not sure to understand as trolling or simple laziness. These mysteries are usually solved with a simple look at JavaFX's public JIRA issue tracking system. The current implementation is still a beta, not even a feature-complete beta, so there are many...
on Jun 18, 2011
It's been a long time, well long in Internet-years, since my last blog on JavaFX. Now I'm approaching JavaFX 2.0 by porting the JavaFX 1.x programs that I had written and blogged about here. These new ports will allow me to evaluate the evolution of the platform. Has the wait been worth it? Porting from JavaFX 1 For my first port I’ve picked JavaFX Balls. (But this blog is not about...
on May 28, 2011
If you want to work for DropBox, they have an interesting programming test which solution must be submitted together with the CV. I’m not considering a position at DropBox, but their test was too fun to ignore: an interesting challenge in algorithms, and another opportunity to exercise JavaFX as any geometric problem surely deserves some GUI. (Don’t read this blog if you actually plan...
on Sep 3, 2010
Now that JDK 6u21, JavaFX 1.3.1 and NetBeans 6.9.1 are all finally released, I'm back to checking the latest news and improvements in JavaFX. The official Release Notes points to the deployment improvements as the single new end-user feature, so I've checked the latest improvements in this area. The really major feature of this release is for developers: debugging and profiling will now, well,...
on Aug 21, 2010
I was doing some JavaFX hacking, and I had to create a sequence initially full of zeros. How can you do that? There's apparently only one way: <p>var bits = for (i in [1..64]) (0 as Long);</p> Problems: First, I need a loop - OK, a comprehension - to initialize the sequence. There is no syntax, no API helper or type constructor, that directly expresses "Long[] with N elements...
on Jun 18, 2010
There is an unwritten tradition that John Conway's Game of Life must be implemented in every programming language and every GUI toolkit. Well, OK I just invented this tradition, but it's a smart introduction and Life is one of the easiest games / cool animations you can program. But it's not too simple that we can't learn a few important things about JavaFX... My goal: a good-looking and feature-...
on May 21, 2010
In my last attempt to stress the JavaFX platform, I ported the Strange Attractor demo/benchmark. Different from JavaFX Balls, this is not scenegraph-driven animation, but old-school "pixel by pixel" drawing… still, makes for another batch of interesting findings, including a few issues in the JavaFX Script language and its compiler, and other topics like fractal maths, BigDecimal...
on Oct 29, 2009
Sun just released the first maintenance update for JavaFX 1.2. This release brings mostly a batch of important javafxc fixes, that I dissect in this blog... Java programmers are used to the fact that compilation of Java source code is a relatively straightforward process, because the Java language has a simple mapping to the Java bytecode. So javac is a trivial compiler, at least in the code...
on Sep 9, 2009

Community

Mark Reinhold announced today that the JDK 7 / JavaSE 7 project has slipped once again: mid-2011 without Jigsaws and Lambdas, late 2012 for JavaSE 8 with those. The delay (or some other bad news like dropping features) was already expected by anyone who tracks the project. But really, how big and bad is this delay? As a big enthusiast of both Jigsaw and Lambdas - and as a tech writer who just...
on Sep 8, 2010

J2SE

In the last updates, I did a quick port to JavaFX 1.2 and evaluated its performance again (and again). But as I keep playing with this benchmark and learning JavaFX, I added a few extra enhancements: New options of 512 Balls (desktop) / 128 Balls (mobile), and Adaptive 60fps. These make easier to compare to some other versions of Bubblemark. Binding-related enhancements recommended here. More...
on Jul 9, 2009
Check first part here. By just adding -server, I got the following results (standard runs, without removing the toolbar or any other tricks): 16 Balls @ 980fps (1% CPU): 1.47X faster than HotSpot Client; 128 Balls @ 460fps (14% CPU): 1.39X faster; Adaptive mode / 285 Balls @ 200fps (20% CPU): 1.28X more load; Adaptive mode / 610 Balls @ 60fps (24% CPU) : 1.08X more load; HotSpot Server is not...
on Jun 10, 2009
Migration JavaFX 1.2 is not a fully backwards compatible release. There are language and API changes, and the compiled code is not binary compatible even for sources that still compiles without changes in the new version. Check Stephen Chin's migration guide. This continues the trend of 1.1; it seems Sun is not yet caring too hard about backwards compatibility. "Legacy" JavaFX 1.0 and 1...
on Jun 2, 2009
I previously reported the highlights of b01 and b02. Following that, b03 was another round of stabilization and small features: fixed some critical compiler2 (HotSpot Server) bugs; closed an important Java2D perf bug (XOR rendering); allowed JavaFX (and other advanced gfx runtimes) to do custom font hinting; allowed users to customize java.lang.Integer's valueOf() cache (smells like a benchmark-...
on Apr 24, 2009
Most of Sun stuff will be very useful to Oracle. I can see a future where Oracle sells you a "complete solution" with Oracle Database and related products (Fusion etc.) running on top of the Solaris OS, Niagara or x64 hardware, a 7xx0 storage system, and also benefiting from virtualization tech from both Solaris and VirtualBox; having MySQL+InnoDB as an entry-level / community database...
on Apr 22, 2009
The release is available here. The Release Notes reveal that, at last, it "supports the New Java Plugin and Java Webstart on AMD64 architecture, on Windows platforms" - fixing the Bug Database's second-most voted bug, except that just on Windows right now, hopefully Linux will follow in 6u14+ (since 6u13 should be a security release). It's also not a completely delivery of all 6u10+...
on Feb 3, 2009
Java FX vs. Swing Part of the attacks to Java FX comes from Swing developers who see JFX as something that's just diverting effort from Sun; and in the long run, could imply Swing's obsolescence. Certainly not a deprecation, but a slow death if no major improvements happen as Sun and the larger ecosystem moves to support JFX exclusively. Personally, I don't think the JFX/Swing competition is a...
on Jan 7, 2009