mirror of
https://github.com/DanilaFe/abacus
synced 2024-11-13 14:19:53 -08:00
Make the program actually create the UI.
This commit is contained in:
parent
61035437ed
commit
734256fac1
|
@ -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();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user