I want to convert jpanel into image file which is not currently active(ie, that jpanel is hidden).
Please guide me how to do that? Is there any possible?
Thanks in advance..
I want to convert jpanel into image file which is not currently active(ie, that jpanel is hidden).
Please guide me how to do that? Is there any possible?
Thanks in advance..
BufferedImage from any of JComponents that returns Dimension.
BufferedImage bufferedImage = new BufferedImage ((int)panel.getSize().getWidth(),
(int)panel.getSize().getHeight(), BufferedImage.TYPE_INT_RGB);