2017-07-24 10:04:00 -07:00
|
|
|
package org.nwapw.abacus;
|
|
|
|
|
2017-07-25 21:52:23 -07:00
|
|
|
import org.nwapw.abacus.plugin.PluginManager;
|
|
|
|
import org.nwapw.abacus.plugin.StandardPlugin;
|
2017-07-25 21:11:36 -07:00
|
|
|
import org.nwapw.abacus.window.Window;
|
|
|
|
|
|
|
|
import javax.swing.*;
|
|
|
|
|
2017-07-24 10:04:00 -07:00
|
|
|
public class Abacus {
|
|
|
|
|
2017-07-25 21:11:36 -07:00
|
|
|
private Window mainUi;
|
2017-07-25 21:52:23 -07:00
|
|
|
private PluginManager manager;
|
2017-07-25 21:11:36 -07:00
|
|
|
|
|
|
|
public Abacus(){
|
|
|
|
init();
|
|
|
|
}
|
|
|
|
|
|
|
|
private void init() {
|
|
|
|
try {
|
|
|
|
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
|
|
|
|
} catch (ClassNotFoundException | InstantiationException | UnsupportedLookAndFeelException | IllegalAccessException e) {
|
|
|
|
e.printStackTrace();
|
|
|
|
}
|
2017-07-25 21:52:23 -07:00
|
|
|
manager = new PluginManager();
|
|
|
|
manager.addInstantiated(new StandardPlugin(manager));
|
2017-07-26 13:31:05 -07:00
|
|
|
mainUi = new Window(manager);
|
2017-07-25 21:11:36 -07:00
|
|
|
mainUi.setVisible(true);
|
2017-07-27 14:06:57 -07:00
|
|
|
manager.load();
|
2017-07-25 21:11:36 -07:00
|
|
|
}
|
|
|
|
|
2017-07-24 10:04:00 -07:00
|
|
|
public static void main(String[] args){
|
2017-07-25 21:11:36 -07:00
|
|
|
new Abacus();
|
2017-07-24 10:04:00 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|