Page 2 of 2 FirstFirst 12
Results 21 to 28 of 28
  1. #21
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    17,816
    Rep Power
    25

    Default

    Sorry, that looks like more than one. Write a program that will do that.

  2. #22
    tanu.kansal is offline Member
    Join Date
    Aug 2011
    Posts
    18
    Rep Power
    0

    Default

    i dnt knw tht
    i only run my programs by this commands

  3. #23
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    17,816
    Rep Power
    25

    Default

    You posted on another thread that is similiar to yours. Here is how I am testing the other Server-Client code:
    Java 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()

  4. #24
    tanu.kansal is offline Member
    Join Date
    Aug 2011
    Posts
    18
    Rep Power
    0

    Default

    i m nt getn anythng what u wana say

  5. #25
    tanu.kansal is offline Member
    Join Date
    Aug 2011
    Posts
    18
    Rep Power
    0

    Default

    i had posted all my code u plzzz help me

  6. #26
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    17,816
    Rep Power
    25

    Default

    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.

  7. #27
    tanu.kansal is offline Member
    Join Date
    Aug 2011
    Posts
    18
    Rep Power
    0

    Default

    ok............

  8. #28
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    17,816
    Rep Power
    25

Page 2 of 2 FirstFirst 12

Similar Threads

  1. MultiClient with Single Server
    By prince87 in forum Threads and Synchronization
    Replies: 1
    Last Post: 05-01-2011, 02:03 AM
  2. Replies: 7
    Last Post: 06-28-2010, 08:52 AM
  3. How to write in private chat room
    By mischaila in forum New To Java
    Replies: 2
    Last Post: 05-28-2010, 03:07 PM
  4. How to implement private chat application using jsp
    By PortalTeam in forum JavaServer Pages (JSP) and JSTL
    Replies: 9
    Last Post: 02-19-2010, 11:49 PM
  5. multiclient copy
    By thuyduong89dt in forum Networking
    Replies: 0
    Last Post: 12-04-2009, 02:46 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •