chating in java applet

A

apple

i want to do multiuser chating program using java applet, and java applet
will be called in html, so is the connection method same if i java file
run as jframe but not applet class file called in html?
 
P

Paul Lutus

apple said:
i want to do multiuser chating program using java applet, and java applet
will be called in html, so is the connection method same if i java file
run as jframe but not applet class file called in html?

Please translate.
 
A

Andrew Thompson

i want to do multiuser chating program using java applet, and java applet
will be called in html, so is the connection method same if i java file
run as jframe but not applet class file called in html?

Applets are very different from applications,
and if you are uncertain of that, it probably
means you would be better to post to a group
for Java starters. More details here..
<http://www.physci.org/codes/javafaq.jsp#cljh>

But then, people who are just learning Java
should not be attempting applets, and somebody
doing a chat server should probably develop it
as an application 1st, just to cut down on
development time.
 
P

Paul Lutus

apple said:
i only know english..

Then start using it.
can u give some useful links to tutorial about this

Please begin -- now -- to express yourself in complete, grammatically
correct, sentences. This will assure that you will be understood. Then
someone can offer advice based on what your actual question is.
 
M

marcus

andrew gave you some good advice. Based on the several posts of yours I
have read, I would suggest you take about twelve steps backwards and
develop some basic skills before you tackle a chat program. You will
need to have a good understanding of threads, serversockets, if streams,
just to name a few. Try reading a few books and working through the
sample programs.

Also, this is a forum for specific problems with code -- try
comp.lang.java.help for more general questions

good luck!

-- clh
 
A

Andrew Thompson

On Mon, 30 Aug 2004 20:06:35 -0700, marcus wrote:

(Applet chat program)

I had meant, but forgot to mention, something like this..
..You will need to have a good understanding
of threads, serversockets, if streams,

I/O streams?
just to name a few. Try reading a few books and working through the
sample programs.

Yes. What marcus wrote.
 
M

marcus

please don't top post, and stop agreeing with me
(this is a joke for those who lack the sarcasm font)
 
C

Cid

Marcus, please don't top post when correcting top-posters. It is
disengenuous. Also, font related posts should probably go to
comp.lang.java.gui.
please don't top post, and stop agreeing with me
(this is a joke for those who lack the sarcasm font)
....
 
G

Grant Wagner

apple said:
i want to do multiuser chating program using java applet, and java applet
will be called in html, so is the connection method same if i java file
run as jframe but not applet class file called in html?

Unsigned Java applets can only connect back to the URI from which they were
loaded, they can not connect directly to each other. In other words, two
users can not download a Java applet from the same Web server and
automatically connect and chat with each other. In fact, without some help
from the (a) server, the two Java applets won't even know there is another
Java applet out there to chat with.

As a result, in order to make a multiuser chating program using java applet,
you need to have a _server *application*_ somewhere (probably on the HTTP
server that served up the applets) for them to connect to. This server would
take care of authenticating the various applets, and relaying the text typed
on one applet to all the other applets that are connected to the server.

This server application could be written in Java, or it could be written in
some other language, it would not matter as long as it understands how the
Java applets connect, authenticate and exchange data.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,013
Latest member
KatriceSwa

Latest Threads

Top