Skip to content

Instantly share code, notes, and snippets.

@basteez
Last active March 28, 2018 13:19
Show Gist options
  • Select an option

  • Save basteez/e67f6f3c99137c475d57d39b3c7d29ec to your computer and use it in GitHub Desktop.

Select an option

Save basteez/e67f6f3c99137c475d57d39b3c7d29ec to your computer and use it in GitHub Desktop.
SWING - Set system look and feel
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