• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Is the whole screen a window?

 
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 230
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic