Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: Net Beans - Look and Feel

  1. #1
    Junior Member
    Join Date
    Jun 2012
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Net Beans - Look and Feel

    When your in NetBeans and your designing a JFrame you click preview design and it shows the frame with NO look and feel. This is what I want.

    But when the actual program is run look and feel applies. I'm certain that NO look and feel is being used anywhere in my code. I commented that out and should have no effect but it does.

    Basically I want something that look's like a plain window's application, that has NO look and feel. What do I do?


  2. #2
    Junior Member
    Join Date
    Jun 2012
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Net Beans - Look and Feel

    Thank's all. I used the following.


    for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {


    if (info.getName().toString().equals("Windows")) {

    try
    {
    javax.swing.UIManager.setLookAndFeel(info.getClass Name());
    }
    catch (Exception ex)
    {
    }

    break;
    }

    }

Similar Threads

  1. How EAR packages and beans can share session id?
    By rcbandit2 in forum Java Theory & Questions
    Replies: 0
    Last Post: December 25th, 2011, 11:31 AM
  2. Object singletons in Servlets/Beans
    By javatrumpet in forum Java Servlet
    Replies: 2
    Last Post: November 7th, 2011, 05:22 PM
  3. Net-beans-java
    By Tanmaysinha in forum Java IDEs
    Replies: 2
    Last Post: November 6th, 2011, 05:45 AM
  4. Net Beans OR Eclipse
    By sanjuds in forum Java IDEs
    Replies: 6
    Last Post: August 16th, 2011, 05:36 AM
  5. [SOLVED] Is this possible? (regarding beans and JSP)
    By Lord Voldemort in forum JavaServer Pages: JSP & JSTL
    Replies: 1
    Last Post: July 31st, 2011, 01:58 AM