Package com.mmi.pllTrainer.gui.listener

Examples of com.mmi.pllTrainer.gui.listener.WindowCloseListener


    this.frame = new MainFrame("2-Sides-PLL", cubeView, cubeModel);

    // Listeners
    this.frame.addKeyListener(new ResetCubeViewListener(this.cubeModel));
    this.frame.addKeyListener(new SpaceListener(this.cubeModel));
    this.frame.addWindowListener(new WindowCloseListener(this.cubeModel));

    // Observers
    this.cubeModel.addObserver(this.cubeView);
  }
View Full Code Here


    JMenuItem exitItem = new JMenuItem("Exit");
    exitItem.addActionListener(new ActionListener() {
      @Override
      public void actionPerformed(ActionEvent e) {
        new WindowCloseListener(MenuBar.this.cubeModel).windowClosing(null);
      }
    });

    fileMenu.add(exitItem);
    return fileMenu;
View Full Code Here

TOP

Related Classes of com.mmi.pllTrainer.gui.listener.WindowCloseListener

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.