• 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

Painting Not on the Screen

 
Bartender
Posts: 1844
Eclipse IDE Ruby Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I've created a Swing-based application that I am trying to create documentation for. As such, I am trying to get screen shots of all of the screens that I have. What I'm looking for is a way to provide a list of screen classes to a utility which will open the screens and paint everything to a file (This way I don't have to modify the application itself to do the painting, and this would then be theoretically a generic way to produce screen shots for any application).
I've trid the following prototype code, but all I get are big black rectangles (which are the right sizes for the screens) in the output files. Any ideas?

BTW, I looked at java.awt.Robot, but I would need to somehow integrate that into my application, yes? Or is there a way to do this with Robot?
[ April 04, 2003: Message edited by: Joel McNary ]
 
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Joel,
It seems to work for me. Did you grab it after the component becomes visible?

Regards,
Raj
 
reply
    Bookmark Topic Watch Topic
  • New Topic