Solved

Java Chat

Posted on 2004-08-04
8
632 Views
Last Modified: 2006-11-17
Hi i'm working in a new project chat
i want some help in that the idea not clear in my mind
could any one describe me the Architucure for chat
Server/Client what the client applet should do and what
is the server i want to use Pure java for client and server
could any one give me a sample or something like that

also i'll include voice chat so if also any one could help me with just a start in that it will be gr8 and thanks for u........
0
Comment
Question by:hema3i
  • 5
8 Comments
 
LVL 30

Accepted Solution

by:
mayankeagle earned 150 total points
ID: 11717684
Hi Hema,

Is it necessary for you to do this using Applets? You'll face some security restrictions while doing that in Applets, for which you might need to sign the Applet.

Is this supposed to be something used over the Internet or just within a LAN?

How much experienced are you in Java programming and what's your experience with sockets?

If you're a beginner, you should go through:

http://java.sun.com/docs/books/tutorial/

Mayank.
0
 
LVL 30

Expert Comment

by:mayankeagle
ID: 11717753
You can build the UI in Swing. Prefer to use something like JFrame, JEditorPane, etc and not applets.

http://java.sun.com/docs/books/tutorial/uiswing/index.html

http://java.sun.com/docs/books/tutorial/uiswing/learn/index.html

Networking basics:

http://java.sun.com/docs/books/tutorial/networking/

You'll need to look into sockets.
0
 
LVL 30

Expert Comment

by:mayankeagle
ID: 11717761
If you want to use a DB for storing user-information, you should look into the tutorial for JDBC as well:

http://java.sun.com/docs/books/tutorial/jdbc/
0
Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
LVL 30

Expert Comment

by:mayankeagle
ID: 11717789
Socket examples:

http://www.javaalmanac.com/egs/java.net/CreateServerSocket.html?l=rel

Have a look at the related examples as well.

The server will need to be multi-threaded:

http://java.sun.com/docs/books/tutorial/essential/threads/index.html
0
 
LVL 30

Expert Comment

by:mayankeagle
ID: 11717830
0
 

Expert Comment

by:ctjoumas
ID: 11719257
A good place to start with a server and a client is: http://www.cn-java.com/download/data/book/socket_chat.pdf

For some reason the domain is giving a Forbidden error.  If you see that, try again later and it should be up.  It is a very good resource and helped me out immensely in getting my java chat application off the ground.
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now