Package window

Examples of window.AppliWindow


 
  //---------------------------------------- KeyListener
  @Override
  public void keyPressed(KeyEvent e) {
   
    AppliWindow window = AppliWindow.getInstance();
   
    switch (e.getKeyChar()) {
    case 'p':
     
      // Retour au jeu
      if(window.isPauseStatus()) {
        window.hidePause();
        window.showGame();
        Game.getInstance().setRunning(true);
        Game.getInstance().start();
       
      }
      // Mise en pause
      else {
        window.showPause();
        window.hideGame();
        Game.getInstance().setRunning(false);
     
      break;
     
    case 'q':
      if(window.isPauseStatus())
        System.exit(0);
    default:
     
      // any other key, let the Focus to the Panel
      window.giveFocusToPanel();
      break;
    }
   
  }
View Full Code Here


        newGameButton.addActionListener(new ActionListener() {
          public void actionPerformed(ActionEvent e) {
            SwingUtilities.invokeLater(new Runnable() {
              public void run() {
                // We create the new instance of the JFrame to run the game
                AppliWindow window;
                try {
                  // AppliWindow is a Singleton
                  window = AppliWindow.getInstance();
                  window.init("Tower-IMAC-Nano Prout !", 800, 600, true, Theme.pathImageMap);
                  window.setVisible(true); // And we make it visible
                } catch (MapFileException e) {
                  e.printStackTrace();
                } catch (JDOMException e) {
                  e.printStackTrace();
                } catch (IOException e) {
View Full Code Here

    newGameButton.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent e) {
        SwingUtilities.invokeLater(new Runnable() {
          public void run() {
            // We create the new instance of the JFrame to run the game
            AppliWindow window;
            try {
              // AppliWindow is a Singleton
              window = AppliWindow.getInstance();
              window.init("Tower-IMAC-Nano Prout !", 800, 600, true, Theme.pathImageMap);
              window.setVisible(true); // And we make it visible
            } catch (MapFileException e) {
              e.printStackTrace();
            } catch (JDOMException e) {
              e.printStackTrace();
            } catch (IOException e) {
View Full Code Here

          public void actionPerformed(ActionEvent e) {     
            SwingUtilities.invokeLater(new Runnable() {
             
              public void run() {
                // We create the new instance of the JFrame to run the game
                AppliWindow window;
                try {
                  // AppliWindow is a Singleton
                  window = AppliWindow.getInstance();
                  window.init("Tower-IMAC Carlotta Towa", 800, 700, true, Theme.pathImageMap);
                  window.setVisible(true); // And we make it visible
                } catch (MapFileException e) {
                  e.printStackTrace();
                } catch (JDOMException e) {
                  e.printStackTrace();
                } catch (IOException e) {
View Full Code Here

TOP

Related Classes of window.AppliWindow

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.