I have a JPanel that consists of many JLabels. So there is no paint at all, just JLabels with different background colors, etc. JPanel is visible.
How to convert this JPanel to image file? The image file will be a JPanel image just like on the screen.
(Ideally, the program will create .png and save it in the same folder in which the program is located, or even in another folder selected by the user.)
Any advice would be appreciated. Thank you
---- This is Cherie again, unregistered, so I could not return to my account to select stas as the answer. That is why I do not answer ... anyway, thanks for your help. Cherie
source
share