Results 1 to 5 of 5
Thread: theme while running
- 04-18-2009, 11:33 PM #1
Member
- Join Date
- Apr 2009
- Posts
- 5
- Rep Power
- 0
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!
- 04-18-2009, 11:35 PM #2
UIManager.setLookAndFeel() and the other methods in UIManager
Don't forget to mark threads as [SOLVED] and give reps to helpful posts.
How To Ask Questions The Smart Way
- 04-19-2009, 04:07 AM #3
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
Are you using Swing components or AWT.
- 04-19-2009, 05:20 AM #4
Member
- Join Date
- Apr 2009
- Posts
- 5
- Rep Power
- 0
swing...in netbeans
- 04-20-2009, 04:33 AM #5
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
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)
Similar Threads
-
Running
By AWPtic in forum EclipseReplies: 1Last Post: 03-24-2009, 06:24 AM -
Process still running
By gatzke in forum New To JavaReplies: 12Last Post: 01-29-2009, 01:00 AM -
Running a script within IE
By Java Tip in forum SWTReplies: 0Last Post: 07-25-2008, 02:33 PM -
tomcat is not running
By nancy_05 in forum Advanced JavaReplies: 9Last Post: 06-12-2008, 09:04 AM -
Problem in running ant
By sireesha in forum New To JavaReplies: 4Last Post: 05-30-2008, 06:10 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks