xuanyun's blog
Implement Shadow for JPopupMenu in Synth Look And Feel
In EaSynth look and feel, you can see the shadow effect of JPopupMenu:
Customize Renderer of JComboBox in Synth Look And Feel
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.
Style Binding in Synth Look And Feel
The style binding mechanism is another great feature of Synth look and feel.
Pack and Deliver Synth Based Look And Feel
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.
Pass Parameters to Painters of Synth Look And Feel
Synth look and feel allow us to implement our own painter classes to render the components, that is very good since we can draw anything in our painter class.
Embedded Objects in Synth Look And Feel
As we know, Synth look and feel can be customized with an XML file which satisfies the Synth XML format. After we go through the document, we can conclude that the type of property in the XML can be one of the following:
Change the Tab Size of JTabbedPane
The JTabbedPane class has not provided an API to set the tab size, but sometimes we do need this, we can find some ways to work arround.
First of all I create a JTabbedPane component with four tabs.
Integrate Your UI Class into Synth Look And Feel
Several years ago, when we talk about designing look and feel, we know it is about implementing different UI classes for different components.





