import javax.swing.UIManager; import javax.swing.LookAndFeel; public class UIManagerTest4{ public static void main(String[] args){ try{ UIManager.setLookAndFeel("javax.swing.plaf.metal.MetalLookAndFeel"); }catch(Exception ex){ System.out.println("Error L&F Setting"); } LookAndFeel laf = UIManager.getLookAndFeel(); System.out.println(laf.getSupportsWindowDecorations()); try{ UIManager.setLookAndFeel("com.sun.java.swing.plaf.motif.MotifLookAndFeel"); }catch(Exception ex){ System.out.println("Error L&F Setting"); } laf = UIManager.getLookAndFeel(); System.out.println(laf.getSupportsWindowDecorations()); try{ UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel"); }catch(Exception ex){ System.out.println("Error L&F Setting"); } laf = UIManager.getLookAndFeel(); System.out.println(laf.getSupportsWindowDecorations()); try{ UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsClassicLookAndFeel"); }catch(Exception ex){ System.out.println("Error L&F Setting"); } laf = UIManager.getLookAndFeel(); System.out.println(laf.getSupportsWindowDecorations()); } }