Skip to main content

Blog Archive for kirillcool during May 2005

Here it is - the JDK 5.0-compliant story behind "Revenge of the Sith". See it in all its glory, using the new java.util.concurrency package: public class Princess implements ExecutorService {   public static final Princess PADME = new Princess();   // private member   private StarShip ship;   private Princess() {     this....
In JAXB Workshop project, I was faced with the following problem: after the XJC generator produces a set of Java source files, I needed to compile them and load them into the running JVM in order to collect cross-reference information: The standard technique for compiling Java source files in regular standalone application is to use the tools.jar that resides under jdk/lib directory, and use...
It's common these days to provide a Web Start version of your application that can run on a machine without the need to download the bundle distribution manually. If your application needs special access privileges, you will need to sign your jar file(s) and then ask user to allow installing this application. Here are the basic steps to do the job. First, you need to create a key store. For this...
In one of the more popular commercial look and feels, Alloy, the default focused button has nice animation effect - its inner border fades in and out in cycles. In Macinstosh OSX, the default button has pulsating effect to visually indicate that the corresponding action will be taken when the user hits the "Enter" key. The underlying code is not very complicated, although there are few spots for...