Getting and Setting a Look and Feel : Look Feel « Swing JFC « Java
- Java
- Swing JFC
- Look Feel
Getting and Setting a Look and Feel
import javax.swing.LookAndFeel;
import javax.swing.UIManager;
public class Main {
public static void main(String[] argv)throws Exception {
// Get the currently installed look and feel
LookAndFeel lf = UIManager.getLookAndFeel();
UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
}
}
Related examples in the same category