Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

screen dumps of swing components  RSS feed

 
kumar saran
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
can any tell me how to generate screen dumps of swing components?.
i have built few swing gui componenets and i need to add them to power point slides.
is there any way of doing this.
i am not using any IDEs like jbuilder.
is there any way of saving swing components as .gif or .jpeg files.
any help is greatly appreciated.
thanks
saran kumar
 
Chantal Ackermann
Ranch Hand
Posts: 508
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
start the gui and make screenshots of it?! if you don't have a program that makes screen shots, there are sure lots of them on the net.
chantal
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Even if you don't have a screenshot program, it is relatively easy to make one using the Robot class provided in Swing...

If you search for "Robot" in this forum you will come up with quite a few examples... one to start you out is here.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!