When we develop Swing applications, SwingWorker are very helpful. But there is a big disadvantage using this class. if you don’t call get() in the done method, you will lose all the exceptions that the computation in the doInBackground() has thrown. And you action can stop and you will never see why. In 95% of […]
Java 7 introduces very interesting features for desktop windows : Transclucency for windows : Make a full window translucent with a specified alpha level Per pixel translucency : Make a part of the window translucent. Shaped windows : You can now create windows with a certain shape, like circle, ovale, triangle, … We’ll see all […]
I experienced some problems with Substance in OSGi. Using this code : I got different errors, like : Exception in thread “AWT-EventQueue-0″ java.lang.NullPointerException at org.pushingpixels.substance.internal.utils.SubstanceColorUtilities.getDefaultBackgroundColor(SubstanceColorUtilities.java:823) I found a simple solution to make Substance work in OSGi : With that code, i’ve no more problems using Substance Look And Feel. Hope that will help someone.
Kirill Grouchnikov has just announced the release of the final release of Substance 6.0. Substance is a really powerful look and feel for Java. This look and feel looks pretty good and is skinnable, you have several themes to apply to the look and feel to customize the appearance of your applications. This version includes the following […]
1. Introduction The focus is the “selected” state of a component. The component who has the focus is the active component. It’s possible to ask focus fror a specific component but normally this is perfectly managed by Swing. With this tutorial, you will learn how to ask focus for a specific component and how to […]
This article will introduce you to the creation of tables in Swing with the JTable class. We will see the elementary concepts of JTable and how to do operations like sort/filter or dynamid add/remove datas to the table.