From 734256fac1ecbb0c99100f5cab5b4c63dfab4637 Mon Sep 17 00:00:00 2001 From: Danila Fedorin Date: Tue, 25 Jul 2017 21:11:36 -0700 Subject: [PATCH] Make the program actually create the UI. --- src/org/nwapw/abacus/Abacus.java | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/src/org/nwapw/abacus/Abacus.java b/src/org/nwapw/abacus/Abacus.java index 50b6bf7..74441d3 100644 --- a/src/org/nwapw/abacus/Abacus.java +++ b/src/org/nwapw/abacus/Abacus.java @@ -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(); } }