tags:

views:

322

answers:

3

Hi, does anybody know a way to "skin" java applications. (Like Winamp skins, or skins for MirandaIM)? I don't want to create my own look and feel. ^^

+2  A: 

Yes, there are a few ways this can be done, but I don't know anyone that is really simple. Have a look at Nimbus: The New Face of Swing, it contains a few examples. You can often override the look of components or just change the colors.

Some links:

And you can always change to another LaF, in example Substance.

Jonas
Nimbus looks very good. Do you know a way to change the shape of a window (e.g rounded corners or an elliptic shaped window)?
Hemeroc
Yes, have a look at http://java.sun.com/docs/books/tutorial/uiswing/misc/trans_shaped_windows.html
Jonas
A: 

Swing has built in dynamic look and feel support if you are talking about desktop apps, you might want to start here. http://java.sun.com/docs/books/tutorial/uiswing/lookandfeel/

edit: If you are talking about a webapp, then absolutely use different .css to acheive a skinnable interface. http://www.csszengarden.com/ is a great example/tutorial on how the same page can look entirely different with different .css

Pete
+2  A: 

We've successfully used Nimrod to 'skin' the swing look & feel. It works well, has several 'themes' already written for it, and can be added in a few lines of code.

JPDecker