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

Painting Not on the Screen  RSS feed

 
Joel McNary
Bartender
Posts: 1840
Eclipse IDE Java Ruby
  • Mark post as helpful
  • send pies
  • 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 ]
 
raj madhuram
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Joel,
It seems to work for me. Did you grab it after the component becomes visible?

Regards,
Raj
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!