Sorry, that looks like more than one. Write a program that will do that.
Printable View
Sorry, that looks like more than one. Write a program that will do that.
i dnt knw tht
i only run my programs by this commands
You posted on another thread that is similiar to yours. Here is how I am testing the other Server-Client code:
Code:public static void main( String args[] ) {
Thread t = new Thread(new Runnable() {
public void run() {
ServerChat serverApp = new ServerChat();
serverApp.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE );
serverApp.runServer();
}
});
t.start();
Thread t1 = new Thread(new Runnable() {
public void run() {
ClientChat clientApp;
clientApp = new ClientChat( "127.0.0.1", 5130, "First One"); //args[0] );
clientApp.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE );
clientApp.setVisible(true); //<<<<<<<<<<<<<<
clientApp.runClient();
}
});
t1.start();
Thread t2 = new Thread(new Runnable() {
public void run() {
ClientChat clientApp;
clientApp = new ClientChat( "127.0.0.1", 5130, "The Second one"); //args[0] );
clientApp.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE );
clientApp.setVisible(true); //<<<<<<<<<<<<<<
clientApp.runClient();
}
});
t2.start();
ClientChat clientApp;
clientApp = new ClientChat( "127.0.0.1", 5130, "Last One"); //args[0] );
clientApp.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE );
clientApp.setVisible(true); //<<<<<<<<<<<<<<
clientApp.runClient();
} // end main()
i m nt getn anythng what u wana say
i had posted all my code u plzzz help me
I need a special test program that will start all your programs in the correct order and with the correct data.
I'm not getting paid to figure out how to execute your code. There are too many steps.
I want you to do ALL the work that is needed for me to execute your code and so I will be able look at how your code is executing and see the problem.
ok............
I see you have removed your code. Probably just as well.