Mega Code Archive

 
Categories / Java / Swing JFC
 

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");   } }