aspose file tools*
The moose likes Java in General and the fly likes Is the whole screen a window? 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 "Is the whole screen a window?" Watch "Is the whole screen a window?" New topic
Author

Is the whole screen a window?

Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
hello,
How could I display the whole screen (that is the desktop and all its windows) in a JFrame?
Best regards, congratulations for the site.
Frank Hale
Ranch Hand

Joined: Mar 25, 2000
Posts: 230
Could you explain your question a little be better. I can't figure out what you mean.
Frank
Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
Ok, I'm working on a little client/server application which
should allow the server to see the client whole screen, displayed
in a window on the server screen. So I wonder how to get the client screen...
Well, I hope this will be clearer. See you Frank.
Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
hi,
hum ... no answers?
maybe this question would be more comprehensible:
How would you create a snapshot of the screen (to save it in a .bmp file for example)?
best regards
Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
The JVM runs in a process on the underlying OS, and so does the desktop. Since the two are separate processes at the OS level and the JVM doesn't know anything about other processes, the only way you're going to give the client-side JVM access to the desktop is with native code.
Are you doing this in Windoze? I don't know anything about the MS implementation of Java, but if you're using that one maybe it allows calls to the Windows API without having to use JNI - that seems like the kind of thing MS might do, given that their goal was to tie Java to Windows. Anyway, what you're attempting is a system-level task that's more suited to C or C++ than Java.
Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
jply,
thanks for your answer. I develop in a Windows/JBuilder environment, but I'd like to create system-independent snapshots.
I'm going to follow your advice and try the JNI way.
see you.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Is the whole screen a window?