aspose file tools*
The moose likes Java in General and the fly likes Opening a popup on another machine Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Opening a popup on another machine" Watch "Opening a popup on another machine" New topic
Author

Opening a popup on another machine

Preet Prasannan.
Ranch Hand

Joined: Feb 09, 2009
Posts: 64
Can I open a pop up on another machine using Java?All my code shall reside on my machine but the popup or the window should open on another machine.
Is this possible?
It should not be like a chat client where we need to install the chat client on the other machine as well.
The machine should only have java installed.Everything other than shall be on my machine.
Can this be achieved?Excuse me if this seems to be trivial question as I am not very familiar with socket programming or any other related method.

"The more I learn,the more,I get to know, is left to learn."
Martijn Verburg
author
Bartender

Joined: Jun 24, 2003
Posts: 3274
    
    5

What sort of window? A Windows window? A Browser Window? A Java Swing Window?


Cheers, Martijn - Blog,
Twitter, PCGen, Ikasan, My The Well-Grounded Java Developer book!,
My start-up.
Preet Prasannan.
Ranch Hand

Joined: Feb 09, 2009
Posts: 64
A windows window is what I am expecting.
But it would be greater even if I can come know about a swing window as well.
But i want to learn about the windows window first.
Thanks in advance
Martijn Verburg
author
Bartender

Joined: Jun 24, 2003
Posts: 3274
    
    5

Well I'm no expert in this area but I imagine you'd have to have a remote connection to that other machine (with privileges) in order to be able to invoke a call to bring up a native Windows applications (either by executing an exe or something through JNI). I'm not sure this is easily doable considernig the security restrictions that should be in place.
salvin francis
Ranch Hand

Joined: Jan 12, 2009
Posts: 928

whats a "windows window" ?


are you referring to the messaging service in an XP system ???

in that case there is no need of any installation at the client. However, i dont know implementation of making a call.

Preet, you need to have something at the client

Maybe a swing application waiting for an event to occur listening to tcp ip via sockets
or maybe a browser sending AJAX calls waiting for a response from server.




My Website: [Salvin.in] Cool your mind:[Salvin.in/painting] My Sally:[Salvin.in/sally]
Preet Prasannan.
Ranch Hand

Joined: Feb 09, 2009
Posts: 64
Thanks a lot Salvin.
I just had this wierd doubt.
To be put simply,its jus that if I want to execute some application on another machine what should I do.
And to start with I wanted to open a window or swing window.I actually wanted to know which particular API can be used.
So that I can atleast get a headway into the thought.
Thanks a lot for giving me these ideas.
salvin francis
Ranch Hand

Joined: Jan 12, 2009
Posts: 928

I feel that you cannot just execute an application in another machine. (that would be hacking)

If the other machine is "ready" to invoke an application when asked, its another story altogether

You may have an application ALREADY running in client that waits for a message from server.
When this application recieves a message from the server, it may execute the application of your choice.

To open a swing dialog box,
you have to know swing api ! (as simple as that)


the class to show a "popup" is JOptionPane

i feel the syntax is:




By looking at your jargon, i guess you do not know much about java based applications.
I suggest you should first try to build small desktop based applications first.

Building a network application for a start is not a good idea.

try simple examples and make progress as you go along.....

still...

For making the network call,

you can either use
TCP/IP - Sockets
or
RMI

google for these and try out small java examples first.


Best of luck
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Opening a popup on another machine