tags:

views:

77

answers:

4

Is there a way to change the standard look of Swing components? Those default, look just pathetic and hopelesly unattractive.
Thanks.

+6  A: 

Yes, you can manually set a different look and feel.

Have a look at the following links

You can even write your own custom look and feel if you like.

aioobe
Could you please point me in the right direction on how to do it?
There is nothing we can do
updated with another link.
aioobe
Is it possible to make them look like native Windows?
There is nothing we can do
only if you're on a windows platform (licensing restrictions): http://www.iam.ubc.ca/guides/javatut99/uiswing/misc/plaf.html ("Currently, you can use this look and feel only on Win32 systems.")
aioobe
As someone else pointed out, just use:UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());If you are on a Windows platform, it will get a Windows "native like" LaF.
Avrom
+1  A: 

Take a look at JGoodies - specifically their Looks libraries. It has tutorials and such about how to set its different look and feels

sechastain
+1  A: 

There's Nimbus for a more attractive default from Sun, provided in 1.6.10+. You can also find many different look and feels through Substance.

justkt
+2  A: 

For information, the default is the "Metal" look and feel, which was created by Sun as an alternative to the Windows 95/98 appearance, which explains the "unattractive", as of today's standards.

You can use the "system" look and feel, which will be a copy of what your system has (more or less):

UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());

There are other LaF available, like described in the other answers. The "Nimbus" is the new "Metal", developed by Sun as an alternative of today's standards. It is still young, though, and there are still things to fix and adjust.

Gnoupi