Results 1 to 5 of 5
  1. #1
    pgag45 is offline Member
    Join Date
    Apr 2009
    Posts
    5
    Rep Power
    0

    Default 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!

  2. #2
    OrangeDog's Avatar
    OrangeDog is offline Senior Member
    Join Date
    Jan 2009
    Location
    Cambridge, UK
    Posts
    838
    Rep Power
    5

    Default

    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

  3. #3
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,374
    Blog Entries
    1
    Rep Power
    18

  4. #4
    pgag45 is offline Member
    Join Date
    Apr 2009
    Posts
    5
    Rep Power
    0

    Default

    swing...in netbeans

  5. #5
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,374
    Blog Entries
    1
    Rep Power
    18

    Default

    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

  1. Running
    By AWPtic in forum Eclipse
    Replies: 1
    Last Post: 03-24-2009, 06:24 AM
  2. Process still running
    By gatzke in forum New To Java
    Replies: 12
    Last Post: 01-29-2009, 01:00 AM
  3. Running a script within IE
    By Java Tip in forum SWT
    Replies: 0
    Last Post: 07-25-2008, 02:33 PM
  4. tomcat is not running
    By nancy_05 in forum Advanced Java
    Replies: 9
    Last Post: 06-12-2008, 09:04 AM
  5. Problem in running ant
    By sireesha in forum New To Java
    Replies: 4
    Last Post: 05-30-2008, 06:10 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •