This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes windows pop up message Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "windows pop up message" Watch "windows pop up message" New topic
Author

windows pop up message

mcore
Greenhorn

Joined: Jul 13, 2001
Posts: 13
hey everyone! i'm in the need of a little help.
how do i send a simple text message from one windows box to another that will be displayed on the other windows box screen? ( i.e ) user A sends a "have you visited javaranch" message to user B, the message will automatically displayed on the user A's screen.
many thanks,
-MCore
pjoisha
Ranch Hand

Joined: Mar 06, 2001
Posts: 123
I take it that ur trying to send a message from one
PC to another. For this to happen you will
need to use low level socket programming or high
level options such as RMI or CORBA
Hope this helps,
PJ

[This message has been edited by Prashanth Joisha (edited September 26, 2001).]
mcore
Greenhorn

Joined: Jul 13, 2001
Posts: 13
is there a way to use "Net Send" with java?
David Weitzman
Ranch Hand

Joined: Jul 27, 2001
Posts: 1365
I don't know what Net Send is, but generally if you want to use a funny protocol, you have to write the code yourself. Try searching google, sourceforge, or freshmeat for code.
mcore
Greenhorn

Joined: Jul 13, 2001
Posts: 13
Net Send: simply sends a message to a user/domain on your network.
found it. you can use windows dos command net send like so:
class NetSend
{
public boardCastMsg ( String msg, String ip ) {
String arg = "net send " + ip + " " + msg;
System.out.println(arg);
Process p = Runtime.getRuntime().exec(arg);
}
}
thanks for the help.
-MCore
shilpa kulkarni
Ranch Hand

Joined: Jun 07, 2000
Posts: 87
That is really cool. I did not know that a command like that existed.
Winpopup was the only means i knew of for 'instant messaging'.
Thanks for the info.
timothy zimmerman
Ranch Hand

Joined: Jun 26, 2001
Posts: 149
That is pretty cool. It will also resolve names so you can either use the ip or the computer name.
Ian Darwin
author
Ranch Hand

Joined: Aug 03, 2001
Posts: 64
A variety of posts mentioned one particular platform-dependant
instant messaging program.

For a "cross-IM-platform" instant messaging, which does have at least one Java client, check out Jabber.

Jabber can talk to AIM, ICQ, IRC, etc., from a single client.
------------------
Ian Darwin,
Author of Java Cookbook: Solutions and Examples for Java Developers


Ian Darwin
Many questions are answered in my Java Cookbook, 2nd Edition
Sham Jowsaki
Ranch Hand

Joined: May 22, 2001
Posts: 146
Hi,
Could pls tell me how to do the pop up windows while sending the instant message from one client to other client Like yahoo, msn and ICQ. The popup window will automatically come if he gets the instant message from other user.
Looking forward your earlier reply.
Cheers
Jowsaki

Originally posted by shilpa kulkarni:
That is really cool. I did not know that a command like that existed.
Winpopup was the only means i knew of for 'instant messaging'.
Thanks for the info.

 
 
subject: windows pop up message
 
Similar Threads
how to implement globally unique identifier (GUID) in tomcat
How to send a mouse event to a component where cursor is?
validation
Booking method in Facade / GUI.
Print pdf file without opening.