Advertisement
Guest User

Untitled

a guest
Sep 5th, 2016
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.63 KB | None | 0 0
  1. package calc;
  2.  
  3. import javax.swing.*;
  4.  
  5. public class Calc {
  6.  
  7.     public static void main(String[] args) {
  8.         try {
  9.             String systemLookAndFeelClassName = UIManager
  10.                     .getSystemLookAndFeelClassName();
  11.             UIManager.setLookAndFeel(systemLookAndFeelClassName);
  12.         } catch (ClassNotFoundException | InstantiationException |
  13.                 IllegalAccessException | UnsupportedLookAndFeelException e) {
  14.         }
  15.         java.awt.EventQueue.invokeLater(() -> {
  16.             Gui gui = new Gui();
  17.             gui.setLocationRelativeTo(null);
  18.             gui.setVisible(true);
  19.         });
  20.     }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement