Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-25-2007, 08:52 PM
Member
 
Join Date: Jul 2007
Posts: 44
susan is on a distinguished road
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.

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.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 07-25-2007, 10:05 PM
Member
 
Join Date: Jul 2007
Posts: 55
Seemster is on a distinguished road
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.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to execute an External Program through Java program Java Tip java.io 0 04-04-2008 03:40 PM
Babylon Java Chat 2.2_BETA Java Tip Java Announcements 0 03-29-2008 01:59 PM
Help in Chat application zocky Networking 0 11-08-2007 08:19 PM
How to execute an External Program through Java program JavaBean Java Tips 0 10-04-2007 10:33 PM
123 Flash Chat 6.6 levent Java Announcements 0 06-05-2007 01:07 PM


All times are GMT +3. The time now is 02:43 PM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org