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
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Reply 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: 19216

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
How To Ask Questions How To Answer Questions
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: How to set Nimbus Look and feel in Netbeans
 
Similar Threads
Help with GridBagLayout resize behaviour
Netbeans - How to set up look & feel
Net Beans GUI Builder - any way to get it to use Metal Look and Feel on Windows?
how to change my GUI app look and feel to Nimbus?
Designing GUIs with cross-platform look and feel