-
Notifications
You must be signed in to change notification settings - Fork 0
/
look and feel.txt
29 lines (26 loc) · 997 Bytes
/
look and feel.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
1]
// Set cross-platform Java L&F (also called "Metal")
UIManager.setLookAndFeel(UIManager.getCrossPlatformLookAndFeelClassName());
2]
// Set System L&F
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
3]
UIManager.setLookAndFeel("javax.swing.plaf.metal.MetalLookAndFeel");
4]
UIManager.setLookAndFeel("com.sun.swing.plaf.motif.MotifLookAndFeel");
5]
for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels())
{
System.out.println(info.getName());
/*if ("Nimbus".equals(info.getName()))
{
javax.swing.UIManager.setLookAndFeel(info.getClassName());
break;
}*/
}
Name and ClassNames
Metal : javax.swing.plaf.metal.MetalLookAndFeel
Nimbus : javax.swing.plaf.nimbus.NimbusLookAndFeel
CDE/Motif : com.sun.java.swing.plaf.motif.MotifLookAndFeel
Windows : com.sun.java.swing.plaf.windows.WindowsLookAndFeel
Windows Classic : com.sun.java.swing.plaf.windows.WindowsClassicLookAndFeel