Package Sockets.SCliente.Control

Source Code of Sockets.SCliente.Control.ThreadCliente

/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package Sockets.SCliente.Control;

import Servidor.control.GestorUsuarios;
import javax.swing.JOptionPane;

/**
*
* @author AdriánEsteban
*/
public class ThreadCliente extends Thread{
   
    private GestorUsuarios gestor;
   
    public ThreadCliente(){
        gestor = new GestorUsuarios();
    }
   
    @Override
    public void run(){
        String nick = JOptionPane.showInputDialog("Introducir Nick");
        if (gestor.verificar(nick)){
            String dirServer = JOptionPane.showInputDialog("Introducir IP_SERVER");           
        }else{
            this.stop();
        }
    }
   
    public static void main(String[] args){
        ThreadCliente hilo;
        hilo = new ThreadCliente();
        hilo.run();
       
    }
}
TOP

Related Classes of Sockets.SCliente.Control.ThreadCliente

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.