Answers for "add image in jlabel"

1

add image in jlabel

Image image=GenerateImage.toImage(true);  //this generates an image file
ImageIcon icon = new ImageIcon(image); 
JLabel thumb = new JLabel();
thumb.setIcon(icon);
Posted by: Guest on June-15-2021

Browse Popular Code Answers by Language