DIGIT-ARC read-only archive · snapshot: July 23, 2026

Java Messenger

17 posts · originally from https://geek.digit.in/community/threads/java-messenger.105252/

V
Vasiq Original post #1
Dec 25, 2008 at 8:34 PM
Recently i got one project on Messenger in Java but i'm little bit confused from where to start....
Any suggestion guys...
QwertyManiac
Dec 26, 2008 at 4:36 PM
Choose or design your protocol for starters? That should give you time to think about what all features you can allow.
V
Vasiq #3
Dec 26, 2008 at 5:13 PM
Choose or design your protocol for starters? That should give you time to think about what all features you can allow.

Thanks for the suggestion. But what i'm thinking is that first i'll start with the GUI part using SWING and then for the networking part but i've been searching for a Swing GUI book but couldn't find it :confused:
C
Dec 26, 2008 at 7:40 PM
Try Sun's Swing tutorial.
C
Dec 26, 2008 at 10:45 PM
*java.sun.com/docs/books/tutorial/ui/index.html
V
Vasiq #8
Dec 30, 2008 at 6:55 PM
Thanks for the suggestion. But what i'm thinking is that first i'll start with the GUI part using SWING and then for the networking part but i've been searching for a Swing GUI book but couldn't find it :confused:

I've started with GUI of my messenger using Netbeans but i'm very worried about the complexities of this software and i can't even get any detail information about "how instant messenger like Yahoo, Windows Live MSN works in detail" i mean "what are the requirement to design an Instant Messenger etc.."
Any suggestion..
C
Dec 30, 2008 at 7:34 PM
I've started with GUI of my messenger using Netbeans but i'm very worried about the complexities of this software and i can't even get any detail information about "how instant messenger like Yahoo, Windows Live MSN works in detail" i mean "what are the requirement to design an Instant Messenger etc.."
Any suggestion..
As Qwerty suggested the protocol you use is more important for a messenger than the Ui itself. Protocol is just how you decide to send and receive stuffs over the socket.
V
Vasiq #10
Dec 30, 2008 at 9:14 PM
As Qwerty suggested the protocol you use is more important for a messenger than the Ui itself. Protocol is just how you decide to send and receive stuffs over the socket.

You mean socket programming but which book should i use for socket programming.....:-?
C
Dec 30, 2008 at 11:13 PM
*java.sun.com/docs/books/tutorial/networking/index.html
V
Vasiq #12
Jan 1, 2009 at 2:41 PM
*java.sun.com/docs/books/tutorial/networking/index.html

But this link only teaches the Basic of the networking i know all this.. i want some tutorials on Socket Programming.
C
Jan 1, 2009 at 2:46 PM
But this link only teaches the Basic of the networking i know all this.. i want some tutorials on Socket Programming.
It does cover socket programming. What is it that you want beyond that? I guess you should look into the Java API docs for very detailed explanation of each calss and method related to Sockets.
V
Vasiq #14
Jan 2, 2009 at 7:52 PM
It does cover socket programming. What is it that you want beyond that? I guess you should look into the Java API docs for very detailed explanation of each calss and method related to Sockets.

thanks a lot for your help chandru. Now we are almost done with our GUI designing and now i want to create a .jnlp file so that i can launch the file by clicking on it.
Could you please tell me how to create a jnlp file for the GUI.
C
Jan 2, 2009 at 7:59 PM
thanks a lot for your help chandru. Now we are almost done with our GUI designing and now i want to create a .jnlp file so that i can launch the file by clicking on it.
Could you please tell me how to create a jnlp file for the GUI.
JNLP is not needed for starting an app with double click. All you need is an executable jar file. JNLP brings with it few security restrictions which may not suit a messenger app.

To create an executable jar, create a plain text file with name say my_manifest. Put this in your top level build directory (where your package directories exist). Then give the below command.

Code:
jar cfm messenger.jar my_manifest *
V
Vasiq #16
Jan 2, 2009 at 8:16 PM
JNLP is not needed for starting an app with double click. All you need is an executable jar file. JNLP brings with it few security restrictions which may not suit a messenger app.

To create an executable jar, create a plain text file with name say my_manifest. Put this in your top level build directory (where your package directories exist). Then give the below command.

Code:
jar cfm messenger.jar my_manifest *

Thanks a lot chandru. Now the only thing which is left in our project is the socket programming part.
BTW thanks once again for your help.
C
Jan 2, 2009 at 9:11 PM
You are welcome. Java excites me always. :D