Skip to content
Snippets Groups Projects
Main.java 694 B
Newer Older
  • Learn to ignore specific revisions
  • import javafx.application.Application;
    import javafx.stage.Stage;
    
    import Controller.RunHotkeys;
    
    import model.OSInterface;
    
    import org.jnativehook.NativeHookException;
    
    import ui.MainScreen;
    
    
    public class Main extends Application {
    
        @Override
        public void start(Stage primaryStage) throws Exception{
    
            new MainScreen();
    
        public static void main(String[] args) throws NativeHookException {
    
            RunHotkeys runHotkeys = new RunHotkeys();
    
            Thread thread = new Thread(OSInterface.getInstance());
    
            new Thread(runHotkeys);
    
            launch(args);
    
    
            OSInterface.getInstance().stop();