Solved

Java Chat

Posted on 2004-08-04
8
639 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:
Mayank S 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:Mayank S
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:Mayank S
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
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

 
LVL 30

Expert Comment

by:Mayank S
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:Mayank S
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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

For customizing the look of your lightweight component and making it look lucid like it was made of glass. Or: how to make your component more Apple-ish ;) This tip assumes your component to be of rectangular shape and completely opaque. (COD…
By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…

860 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