-
theme while running
Hello all,
Rather new to the Netbeans IDE, and I have a rather noob question... I'm developing a GUI, and when using the "preview design" it defaults with the "windows" theme... which I like. However, when I actually run the program it defaults to Metal or something. How do I go about forcing it use a certain theme?
Thanks and sorry if this question has been asked a million times!
-
UIManager.setLookAndFeel() and the other methods in UIManager
-
Are you using Swing components or AWT.
-
-
In default NetBeans use an ash color in all component except the tittle bar of the dialog, is swing. So what you have to do is, as OrangeDog says, setLookAndFeel() works for you.
How to Set the Look and Feel (The Java™ Tutorials > Creating a GUI with JFC/Swing > Modifying the Look and Feel)