Package client

Source Code of client.ClientExec

/**
*
*/
package client;

import java.io.IOException;
import java.net.UnknownHostException;
import java.util.Iterator;

import client.gui.JXoFrame;
import client.gui.misc.GU;

/**
* @author Matej Hausenblas matej.hausenblas@gmail.com
*
*/
public class ClientExec {

  /**
   * Point d'entrée du projet
   *
   * @param args Les arguments de la ligne de commande
   */
  public static void main(String[] args) {

    /*
     * if (args.length != 0) { nomMachine = args[0]; port = args[1];
     * nomFichier = args[2]; } System.out.println(nomMachine);
     * System.out.println(port); System.out.println(nomFichier);
     */

    // Lancement du GUI
    JXoFrame guiJXo = new JXoFrame();
    JxoClient client;
    try {
      // recuperation des parametres du gui.
      String hostName = guiJXo.getHostName();
      String userName = guiJXo.getUserName();
     
      client = new JxoClient(hostName, userName, guiJXo);
      /*
       * Conteneur c = new Conteneur(TypeConteneur.JOUEUR, new
       * Joueur("Tito")); client.envoyerConteneur(c);
       */
    } catch (UnknownHostException uhe) {
      // afficher un dialogue en disant que le hote est inconnu
    } catch (IOException e) {
      e.printStackTrace();
      // System.err.println("pb de connexion : " + e);
    }

  }
 
}
TOP

Related Classes of client.ClientExec

TOP
Copyright © 2018 www.massapi.com. 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.