I attended "Swing Tips and Tricks: A Best Practices Approach to Swing Applications" talk today. While the talk covered well-known ground (or what I hope should be well-known ground) for Swing developers, what struck me most was that we (developers) are too often ostriches. Putting our heads in the sand, we move forward tackling problems as they come, forgetting that...
on Sep 20, 2010
My first session this moring at JavaOne was Deploying Java Applications on the Web. It was quite good as it covered some of the newer techniques that have been added to the latest 1.6_x updates. As with any good session, I walked away with some knowledge that I hadn't entered with, but what struck me the most was the legacy of JavaFX. While JavaFX was mentioned (in passing once...
on Sep 20, 2010
On my wordpress blog, I've composed yet another digest of JavaOne highlights.
on Sep 15, 2010
on Sep 10, 2010
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
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've just committed mavenized version of swingx under the swingx-r3734-mavenized branch.
If you know nothing about maven here's the basic:
download and install (unzip) maven from http://maven.apache.org
you should not need to configure anything apart from geting maven/bin on your path so you can run maven
to build swingx you need to run "mvn install" or "mvn clean install...
on Jul 26, 2010
As Karl mentioned already in his blog, SwingX 1.6.1 was released few weeks ago. There were some issues uploading the artifacts to central repo this time, due to previous nexus migration and changes in structure of repositories, but all is solved now.
To use 1.6.1 simply update your pom to
<pre style="font-family: monaco, courier, 'courier new...
on Jul 24, 2010
With the release of SwingX 1.6.1, we now have a milestone release that contains the PromptSupport code. So, what are prompts? They are decorations to empty text components that usually provide a clue on how to use the component. Search fields containing a "Search" prompt, etc. Here, I provide a couple of examples on how to use the new SwingX code as well as a...
on Jul 15, 2010
I am please to announce that SwingX has released version 1.6.1. We hope to have the release uploaded Maven central soon.
Just a quick overview of some of the issues:
Added prompt support.
Added new Highlighters and HighlighterPredicates and improved the rendering API.
Lots of JXDatePicker and JXMonthView improvements.
More Mustang sorting improvements.
on Jul 8, 2010
In the last installment of my post, I briefly described how to do Test Driven Development (TDD) in JavaFX using Model-View-Presenter (MVP) pattern. In this installment, I illustrate this particular piece in detail and provide working code samples. You can download the code here (Caution: 6.7 MB download).
The download is a zip file containing all 4 Netbeans projects. The code is tested with...
on Jul 7, 2010
Update (2012-09-24): Maven users, you can directly link this class (LGPL), as I have uploaded it into Maven Central. Simply add a dependency to:
<dependency> <groupId>eu.headcrashing.treasure-chest</groupId> <artifactId>EnumerationsClass</artifactId> <version>...
on Jul 4, 2010
In my opinion, SQL Anyhwere is the best RDBMS I can think of. I can remember when we started distributing it in Germany back in the early 1990ies, as one of the first early adopters in this country. Since then, we provided it to hundreds of enterprises, from single-person laptop-only ones to large ones spanning replicated installations crossing country borders. So call me biased in that...
on Jul 3, 2010
As part of some open source stuff I've been doing on the side I've had to generate and parse a lot of XML. I like working with the DOM because it's tree structure cleanly matches my needs, but the W3C API is *so* cumbersome. The DOM was designed to be implemented in any language, not just clean OO languages like Java, so any code using it will work but be ugly. After considering a few other XML...
on Jun 28, 2010
In two previous entries I covered Introducing NIO.2 (JSR 203) Part 1: What are new features? and Introducing NIO.2 (JSR 203) Part 2: The Basics In this entry I will discuss Attributes introduced in NIO.2. Using attributes we can read platform specific attributes of an element in the file system. For example to hide a file system in DOS file system or to check the last access date of a file in...
on Jun 23, 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
I am happy to announce the release of Apache Pivot 1.5! Apache Pivot (http://pivot.apache.org) is a platform for building rich Internet applications (RIAs) in Java. It combines the enhanced productivity and usability features of a modern RIA toolkit with the robustness of the industry-standard Java platform.
Pivot 1.5 includes a number of improvements intended to help improve the overall...
on Jun 8, 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
<a name="abstract">In the month of June 2009, I did an initial post in the openjdk.java.net-jdk7-dev<br /> mailing list with a request for what I feel are two very important changes<br /> required in the Java Platform.This resulted in a thread of discussions...
on Jun 2, 2010