Results 1 to 3 of 3
Thread: look and feel in net beans
- 08-22-2011, 02:32 PM #1
Member
- Join Date
- Aug 2011
- Posts
- 1
- Rep Power
- 0
- 08-28-2011, 11:30 AM #2
Member
- Join Date
- Aug 2011
- Posts
- 5
- Rep Power
- 0
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);
}
}
...
}
- 08-28-2011, 11:31 AM #3
Member
- Join Date
- Aug 2011
- Posts
- 5
- Rep Power
- 0
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
-
Look And Feel
By nonabhai in forum AWT / SwingReplies: 0Last Post: 09-24-2010, 08:23 PM -
Help on Look and Feel
By mine0926 in forum NetBeansReplies: 4Last Post: 05-05-2010, 04:27 AM -
How to make Beans Lazily-instantiating beans
By Java Tip in forum Java TipReplies: 0Last Post: 03-30-2008, 10:10 AM -
How to make Beans Lazily-instantiating beans
By JavaBean in forum Java TipReplies: 0Last Post: 09-26-2007, 08:41 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks