Make the program actually create the UI.

This commit is contained in:
Danila Fedorin 2017-07-25 21:11:36 -07:00
parent cc5d487386
commit b93346ec37
1 changed files with 21 additions and 1 deletions

View File

@ -1,9 +1,29 @@
package org.nwapw.abacus;
import org.nwapw.abacus.window.Window;
import javax.swing.*;
public class Abacus {
private Window mainUi;
public Abacus(){
init();
}
private void init() {
try {
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
} catch (ClassNotFoundException | InstantiationException | UnsupportedLookAndFeelException | IllegalAccessException e) {
e.printStackTrace();
}
mainUi = new Window();
mainUi.setVisible(true);
}
public static void main(String[] args){
System.out.println("Hello world!");
new Abacus();
}
}