Results 1 to 3 of 3
  1. #1
    tmaxypro is offline Member
    Join Date
    Aug 2011
    Posts
    1
    Rep Power
    0

    Default look and feel in net beans

    Hey all of you, I`m new to java and i need to know how could i change my netbeans look and feel.where should I have to insert the code? please help me.Thank you

  2. #2
    lok pun is offline Member
    Join Date
    Aug 2011
    Posts
    5
    Rep Power
    0

    Default

    i think this will help u

    import javax.swing.*;
    import java.awt.*;

    public class WindowUtilities {
    public static void setNativeLookAndFeel() {
    try {
    UIManager.setLookAndFeel(UIManager.getSystemLookAn dFeelClassName());
    } catch(Exception e) {
    System.out.println("Error setting native LAF: " + e);
    }
    }

    public static void setJavaLookAndFeel() {
    try {
    UIManager.setLookAndFeel(UIManager.getCrossPlatfor mLookAndFeelClassName());
    } catch(Exception e) {
    System.out.println("Error setting Java LAF: " + e);
    }
    }

    public static void setMotifLookAndFeel() {
    try {
    UIManager.setLookAndFeel("com.sun.java.swing.plaf. motif.MotifLookAndFeel");
    } catch(Exception e) {
    System.out.println("Error setting Motif LAF: " + e);
    }
    }

    ...

    }

  3. #3
    lok pun is offline Member
    Join Date
    Aug 2011
    Posts
    5
    Rep Power
    0

    Default java look and feel

    i think this will help u

    import javax.swing.*;
    import java.awt.*;

    public class WindowUtilities {
    public static void setNativeLookAndFeel() {
    try {
    UIManager.setLookAndFeel(UIManager.getSystemLookAn dFeelClassName());
    } catch(Exception e) {
    System.out.println("Error setting native LAF: " + e);
    }
    }

    public static void setJavaLookAndFeel() {
    try {
    UIManager.setLookAndFeel(UIManager.getCrossPlatfor mLookAndFeelClassName());
    } catch(Exception e) {
    System.out.println("Error setting Java LAF: " + e);
    }
    }

    public static void setMotifLookAndFeel() {
    try {
    UIManager.setLookAndFeel("com.sun.java.swing.plaf. motif.MotifLookAndFeel");
    } catch(Exception e) {
    System.out.println("Error setting Motif LAF: " + e);
    }
    }

    ...

    }

Similar Threads

  1. Look And Feel
    By nonabhai in forum AWT / Swing
    Replies: 0
    Last Post: 09-24-2010, 09:23 PM
  2. Help on Look and Feel
    By mine0926 in forum NetBeans
    Replies: 4
    Last Post: 05-05-2010, 05:27 AM
  3. How to make Beans Lazily-instantiating beans
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 03-30-2008, 11:10 AM
  4. How to make Beans Lazily-instantiating beans
    By JavaBean in forum Java Tip
    Replies: 0
    Last Post: 09-26-2007, 09:41 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
  •