Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Opening a popup on another machine

 
Preet Prasannan.
Ranch Hand
Posts: 64
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Martijn Verburg
author
Bartender
Posts: 3275
5
Eclipse IDE Java Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What sort of window? A Windows window? A Browser Window? A Java Swing Window?
 
Preet Prasannan.
Ranch Hand
Posts: 64
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3275
5
Eclipse IDE Java Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Bartender
Pie
Posts: 1227
10
Eclipse IDE Google Web Toolkit Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.



 
Preet Prasannan.
Ranch Hand
Posts: 64
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Bartender
Pie
Posts: 1227
10
Eclipse IDE Google Web Toolkit Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic