This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes chat application in swings Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "chat application in swings" Watch "chat application in swings" New topic
Author

chat application in swings

mallikarjun dontamsetti
Ranch Hand

Joined: Mar 18, 2011
Posts: 242

Hi, i have to develop a chat application like personnel chat. i have gone through many examples those are public chat examples. can any one give me a link or example to develop the chat application.
Ranganathan Kaliyur Mannar
Bartender

Joined: Oct 16, 2003
Posts: 1075
    
  10

First of all, it is 'Swing' as explained in the FAQ.

You can go thru this tutorial to understand sockets. Read is, start coding and post back if you are stuck.


Ranga.
SCJP 1.4, OCMJEA/SCEA 5.0.
mallikarjun dontamsetti
Ranch Hand

Joined: Mar 18, 2011
Posts: 242

Hi,
I have created my chat application using kryonet jar file. it is working fine now. I have a doubt, each time i am running server program in one of my local system and other systems in my LAN has to connect it. It is ok. But my doubt is how to run the chat server program only one time(not for every user request) until the application server/web-server closes.
I have to call this chat application in an applet.
Ranganathan Kaliyur Mannar
Bartender

Joined: Oct 16, 2003
Posts: 1075
    
  10

I have no idea about kyronet.
However, I think you should be able to run the chat server and leave it running...have you tried it?
mallikarjun dontamsetti
Ranch Hand

Joined: Mar 18, 2011
Posts: 242

sorry for late reply
can i start my server automatically(chat server program) when system starts.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39578
    
  27
Sure, just install it as a Windows service or Unix/Linux daemon.


Ping & DNS - updated with new look and Ping home screen widget
mallikarjun dontamsetti
Ranch Hand

Joined: Mar 18, 2011
Posts: 242

Ulf Dittmer wrote:Sure, just install it as a Windows service or Unix/Linux daemon.

can you give an example
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39578
    
  27
What did you find out by googling? You didn't even mention what OS the app would be running on, so 50% of what I might write would be wasted.
mallikarjun dontamsetti
Ranch Hand

Joined: Mar 18, 2011
Posts: 242

i am using windows operating system(XP and 7). By googling i found thi link run java as windows service but i am getting their licence term.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39578
    
  27
Tanuki is indeed the standard Java Windows service wrapper. Not sure what you mean by the comment about its license.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: chat application in swings
 
Similar Threads
Help on Servlet's Chat !!!
Chatserver in j2me
chat application
APIs/Strategy to be used in developing web-based chat Application using Servlets.
How To implement chat application