Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Chapter 16. Swinging Higher > Fast Splash Screens - Pg. 357

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