1 Reply Latest reply on Oct 8, 2004 2:05 PM by 807587

    Metal Look & Feel on a Mac

    807587
      When I run my app on a Mac, the look and feel is not Metal.
      How can I prevent this?
        • 1. Re: Metal Look & Feel on a Mac
          807587
          do this at the start of application.

          joemonpaul@yahoo.com


          try {
                                   UIManager.setLookAndFeel("com.sun.java.swing.mac.MacLookAndFeel");

                                   UIManager.setLookAndFeel(UIManager.getSystemLookAndFellClassName
                                   ());
                                   } catch(Exception e) {
                                   System.out.println("Error setting Motif LAF: " + e);
                    }