Results 1 to 2 of 2
  1. #1
    susan is offline Member
    Join Date
    Jul 2007
    Posts
    44
    Rep Power
    0

    Default Java Program chat

    I am looking for someone who can help me out in creating a java chat program.
    If anyone is good with sending/receiving of java fill free to reply. I am not to good with that portion so i am looking for someone to help me through it/make it while i can do the rest.
    I have made a few steps into what needs to happen and i have come up with a small program. I am stuck now at how to get this to work. What i want to do is have another program come in and change the text in the text area. I have seen this done before in some other examples but i am not able to finish it. If any one can build a sample program that can do this please show me the program.
    Other than that here is the small program i have done so far.

    Java Code:
    import java.awt.*;
    
    class ChatWindow extends Frame
    {
    	TextArea  textArea; 
    	
    	public ChatWindow(String title, String message)
    	{
    		super(title);
    		this.setLayout(new BorderLayout(15, 15));
    		textArea = new TextArea(message);
            this.add("Center", textArea);
            this.pack();
    	}
    	public static void main(String[] args)
    	{
    		/*Frame f = new Frame("Chat Program");
            f.resize(100, 100);
            f.show();*/
            ChatWindow d = new ChatWindow("Chat Program","Test");
            d.show();
    	}
    }
    Also if anyone can get the frame thing i commented out for right now to work please fill free to show me how that would be done.
    Thanks.

  2. #2
    Seemster is offline Member
    Join Date
    Jul 2007
    Posts
    55
    Rep Power
    0

    Default

    there's lots of articles on how to implement a simple java chat service. i'd suggest googling it. check out java world or the java tutorial. they sould have examples. good luck.

Similar Threads

  1. Replies: 0
    Last Post: 04-04-2008, 02:40 PM
  2. Babylon Java Chat 2.2_BETA
    By Java Tip in forum Java Software
    Replies: 0
    Last Post: 03-29-2008, 12:59 PM
  3. Help in Chat application
    By zocky in forum Networking
    Replies: 0
    Last Post: 11-08-2007, 07:19 PM
  4. Replies: 0
    Last Post: 10-04-2007, 09:33 PM
  5. 123 Flash Chat 6.6
    By levent in forum Java Software
    Replies: 0
    Last Post: 06-05-2007, 12:07 PM

Posting Permissions

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