Package View

Examples of View.GUI


*/
public class Main {
  static public void main(String args[]) {
    Controller controller = new Controller(true);
    Game game = Game.getInstance();
    GUI gui = GUI.getInstance();

    /* Boucle de jeu */
    while (!game.isFinished()) {
      game.step();
      gui.update();
    }
    JFrame fin;
    fin = new JFrame();
    fin.setResizable(false);
    fin.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
View Full Code Here


       
          IP = args[0];
              try {
                    if (InetAddress.getByName(IP).isReachable(5000)) {
                        // Here we dispose this screen and launch the GUI
                        new Gui(IP);
                    } else {
                        System.out.println("Could not reach controller from parameter specified, going to main screen.");
                      try {
                        new Startup();
                      } catch (Exception e) {
View Full Code Here

TOP

Related Classes of View.GUI

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.