Advertisement
Guest User

Untitled

a guest
Jul 16th, 2019
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. UIManager.setLookAndFeel(String полный_путь_к_классу);
  2.  
  3. try {
  4. UIManager.setLookAndFeel(new NimbusLookAndFeel());
  5. } catch (UnsupportedLookAndFeelException e) {
  6. e.printStackTrace();
  7. }
  8.  
  9. try {
  10. UIManager.setLookAndFeel("javax.swing.plaf.nimbus.NimbusLookAndFeel");
  11. } catch (UnsupportedLookAndFeelException e) {
  12. e.printStackTrace();
  13. }
  14.  
  15. try {
  16. UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
  17. } catch (ClassNotFoundException | InstantiationException |
  18. IllegalAccessException
  19. | UnsupportedLookAndFeelException e) {
  20. e.printStackTrace();
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement