Last active
March 28, 2018 13:19
-
-
Save basteez/e67f6f3c99137c475d57d39b3c7d29ec to your computer and use it in GitHub Desktop.
SWING - Set system look and feel
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| private static void initLaF() | |
| { | |
| try | |
| { | |
| UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); | |
| } | |
| catch(UnsupportedLookAndFeelException e){e.printStackTrace();} | |
| catch(ClassNotFoundException e){e.printStackTrace();} | |
| catch(InstantiationException e){e.printStackTrace();} | |
| catch(IllegalAccessException e){e.printStackTrace();} | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment