Package edu.ups.gamedev.ui

Examples of edu.ups.gamedev.ui.NetworkPanel


 
  /**
   * Queries the user for whether or not to run in server mode.
   */
  private static void askRunServer() {
    NetworkPanel netPan;
    netPan = new NetworkPanel();
    JFrame frame = new JFrame();
    frame.add(netPan);
    frame.pack();
    frame.setVisible(true);
    runServer = netPan.isServer();
    serverAddress = netPan.getServerAddress();
    frame.setVisible(false);
  }
View Full Code Here


  private static void askRunServer() {
    /*int result = JOptionPane.showConfirmDialog(null, "Should the program run in server mode?", "Run a server?", JOptionPane.YES_NO_OPTION);
    if(result == JOptionPane.YES_OPTION) {
      runServer = true;
    }*/
    NetworkPanel netPan;
    netPan = new NetworkPanel();
    JFrame frame = new JFrame();
    frame.add(netPan);
    frame.pack();
    frame.setVisible(true);
    runServer = netPan.isServer();
    serverAddress = netPan.getServerAddress();
    frame.setVisible(false);
  }
View Full Code Here

  /**
   * Queries the user for whether or not to run in server mode.
   */
  private static void askRunServer() {
    NetworkPanel netPan;
    netPan = new NetworkPanel();
    JFrame frame = new JFrame();
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    frame.add(netPan);
    frame.pack();
    frame.setVisible(true);
    runServer = netPan.isServer();
    serverAddress = netPan.getServerAddress();

    // make sure this thread goes away
    frame.dispose();
  }
View Full Code Here

TOP

Related Classes of edu.ups.gamedev.ui.NetworkPanel

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.