mirror of
				https://github.com/DanilaFe/abacus
				synced 2025-10-30 17:33:42 -07:00 
			
		
		
		
	
		
			
				
	
	
		
			35 lines
		
	
	
		
			860 B
		
	
	
	
		
			Java
		
	
	
	
	
	
			
		
		
	
	
			35 lines
		
	
	
		
			860 B
		
	
	
	
		
			Java
		
	
	
	
	
	
| package org.nwapw.abacus;
 | |
| 
 | |
| import org.nwapw.abacus.plugin.PluginManager;
 | |
| import org.nwapw.abacus.plugin.StandardPlugin;
 | |
| import org.nwapw.abacus.window.Window;
 | |
| 
 | |
| import javax.swing.*;
 | |
| 
 | |
| public class Abacus {
 | |
| 
 | |
|     private Window mainUi;
 | |
|     private PluginManager manager;
 | |
| 
 | |
|     public Abacus(){
 | |
|         init();
 | |
|     }
 | |
| 
 | |
|     private void init() {
 | |
|         try {
 | |
|             UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
 | |
|         } catch (ClassNotFoundException | InstantiationException | UnsupportedLookAndFeelException | IllegalAccessException e) {
 | |
|             e.printStackTrace();
 | |
|         }
 | |
|         manager = new PluginManager();
 | |
|         manager.addInstantiated(new StandardPlugin(manager));
 | |
|         mainUi = new Window(manager);
 | |
|         mainUi.setVisible(true);
 | |
|     }
 | |
| 
 | |
|     public static void main(String[] args){
 | |
|         new Abacus();
 | |
|     }
 | |
| 
 | |
| }
 |