jQuery in Action, 2nd edition*
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
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: 243

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: 1076
    
  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: 243

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: 1076
    
  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: 243

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

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


Ping & DNS - my free Android networking tools app
mallikarjun dontamsetti
Ranch Hand

Joined: Mar 18, 2011
Posts: 243

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: 41603
    
  55
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: 243

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: 41603
    
  55
Tanuki is indeed the standard Java Windows service wrapper. Not sure what you mean by the comment about its license.
 
 
subject: chat application in swings