This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Swing / AWT / SWT and the fly likes How to set Nimbus Look and feel in Netbeans Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "How to set Nimbus Look and feel in Netbeans" Watch "How to set Nimbus Look and feel in Netbeans" New topic
Author

How to set Nimbus Look and feel in Netbeans

kunagu varun
Ranch Hand

Joined: Apr 13, 2010
Posts: 38
What i want to do is to set Nimbus look and feel for my GUI application developed in Netbeans. When i run the application it uses only the default windows xp theme. I want netbeans to use java themes for my GUI application.

Please help me...
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19672
    
  18

Check out UIManager and its setLookAndFeel method. You can use the getInstalledLookAndFeels method to get the installed look&feels.

Keep in mind that you need to set the look&feel before you create your user interface. If you set it later you need to call update the UI - use SwingUtilities.updateComponentTreeUI for this.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to set Nimbus Look and feel in Netbeans