Saving a component to a file.
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Simon_Bridger
Posted On:   Thursday, May 16, 2002 01:51 AM

How can you save a component eg a JPanel

to a file such as a JPeg or Gif?

Re: Saving a component to a file.

Posted By:   Christopher_Koenigsberg  
Posted On:   Thursday, May 16, 2002 06:53 AM

On a Microsoft Windows client, control-alt-Printscreen (image to the clipboard), then bring up Paint and paste from clipboard to new image document file.



On a Linux client, "import" (at least, RedHat includes this & other ImageMagick utilities), click in desired window, then "display" to view image file.



i.e. you don't need Java just to get a bitmap image of a window on the screen!

About | Sitemap | Contact