Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
357 Returns the look and feel tat works on all platforms (the Java look and feel). UIManager.getSystemLookAndFeelClassName(). Returns the look and feel for the current platform, that is, if the application is running on Windows the Windows look and feel will be used, etc. You must call the setLookAndFeel method before constructing your GUI. Normally, you do this before calling the constructGUI method in your application. Here is an example of using the current system's look and feel: public static void main(String[] args) { try { UIManager.setLookAndFeel( UIManager.getSystemLookAndFeelClassName()); } catch (Exception e) { e.printStackTrace(); }