views:

382

answers:

5

I am working on a project that uses Java Swing. The default look and feel of the Java Swing GUI is very boring. Is there any way I can use a better look and feel? Something like on web pages...

+7  A: 

Look at the Java tutorial for setting the look and feel. In addition to those mentioned there, recent Java 6 releases also include the Nimbus Look and Feel.

Michael Borgwardt
+1 for Nimbus. It was introduced in Java 1.6.10
Jason Nichols
A: 

You can take a look here. I googled on java swing theme.

That said, if you're making a hobby project changing the LAF is no problem. If you're making software for your buddies it's also not a problem. If you make software for customers keep the swing default. It works well and isn't too exciting:)

extraneon
Michael Borgwardt
@Michael Borgwardt OK. I agree with you there. What I actually tried to say is that a boring GUI is not really a problem for most users, they actually like something standard.
extraneon
I think thats a fair statement. My experience is that the user gets scared when seeing a gui he's not familiar with.They need something they can relate to. Which also improves usability.
Frederik Wordenskjold
A: 

Another option is the Plastic Look-and-feel. It gives Swing apps an XP-like look and offers a lot of customization options.

EDIT: I just noticed that the images on that page are broken. If you click through to the JGoodies Looks page, you at least see 3 examples of what you can accomplish with those looks.

Carl Smotricz
+6  A: 

You can set the look and feel to reflect the platform:

try{ 
   UIManager.setLookAndFeel(
        UIManager.getSystemLookAndFeelClassName());
}
catch(Exception e){
 e.printStackTrace();
}

If this is not nice enough for you, take a look at swt for Eclipse

Frederik Wordenskjold
Probably the very simplest recommendation. With luck, it could be exactly what the OP wanted!
Carl Smotricz
hi frederik i tried this. its so nice thanks for your help. this was something i wanted.
Mandar
Happy to help :)
Frederik Wordenskjold
+1  A: 

Substance is a very configurable and modern LAF:

https://substance.dev.java.net/

Russ Hayward