Java Swing GUI theming

Is it possible to develop custom PLAF themes for Swing? I would appreciate constructive suggestions in this thread. Thanks

+4
source share
7 answers

Yes! But do not do it. If you just need to change colors. Try JGoodies or Substance and obey writing your own PLAF.

+4
source

It depends on what you definitely want to do. Writing your own LAF, extending from Java Basic or Metal, is a lot of work, but you can do it. If you have special goals, for example, to draw a gradient background for Jtrees or highlightin animation, it will be difficult, but it can also be done. It is also very useful to download the open source LAF for swing and see the source code to learn how to write your own PLAF. Please take a look here .

+2
source

Infonode provides the foundation for developing a new look. They have a GPL'd library that you can use.

See this .

+1
source

Sun provides an interesting view for creating a custom PLAF .

+1
source

If you want to customize Swing Look and Feel, look for PLAFs in libraries like FUSE. This is the custom look and feel of the swing.

Here are some screenshots: http://www.curious-creature.org/2006/02/12/fuseswing-demo/

Here is the library: https://fuse.dev.java.net/

This is something written that used it: https://aerith.dev.java.net/ (Also with some great screenshots)

+1
source

You can create a custom PLAF using the built-in Synth Look-and-Feel. This is basically PLAF, which allows you to customize the appearance of all components (or only specific by component names) through an XML configuration file. The package [javax.swing.plaf.synth][1] JavaDoc gives a good overview of what is possible, and there is additional documentation associated with JavaDocs for using this PLAF.

I have used this in my projects before, and it is very easy to work with it. You can use your own graphics for all components and you can customize almost anything without having to go through all this cumbersome user coding, which was necessary to create PLAF

0
source

All Articles