Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package calc;
- import javax.swing.*;
- public class Calc {
- public static void main(String[] args) {
- try {
- String systemLookAndFeelClassName = UIManager
- .getSystemLookAndFeelClassName();
- UIManager.setLookAndFeel(systemLookAndFeelClassName);
- } catch (ClassNotFoundException | InstantiationException |
- IllegalAccessException | UnsupportedLookAndFeelException e) {
- }
- java.awt.EventQueue.invokeLater(() -> {
- Gui gui = new Gui();
- gui.setLocationRelativeTo(null);
- gui.setVisible(true);
- });
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement