Skip to main content

Blog Archive for xuanyun during February 2009

Customizing the JComboBox style in Synth look and feel is a little complex, I can write a long article for it, but I don't want to be too tired, so please let me share my experience piece by piece. Today let's see how to customize the cell renderer for drop-down list in JComboBox. Can we just do nothing and let the Synth look and feel to handle it in default way? Unfortunately it does not...
The style binding mechanism is another great feature of Synth look and feel. By using style binding, you can define several button styles within the same look and feel (one as default button style and the others are candidates), the final user can decide which style can be applied on which button. How could Synth achieve this? The answer is hidden in the bind node in XML. Let's make an...
If you want to deliver your Synth based look and feel, packaging it as a jar file will be a good idea. There are different structures for different look and feel packages, here I will introduce the one from EaSynth look and feel. To ease the usage of the new look and feel, it is better to create a new look and feel class, which is extended from javax.swing.plaf.synth.SynthLookAndFeel....