Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to set Nimbus Look and feel in Netbeans

 
kunagu varun
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 20527
54
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic