Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Is the whole screen a window?

 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 230
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Could you explain your question a little be better. I can't figure out what you mean.
Frank
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic