Pls suggest me what we can use to add images to panels and display them in an application. It would be helpful if somebody could provide the names of the widgets. Gaurav
anandh
Greenhorn
Joined: Sep 06, 2001
Posts: 22
posted
0
Try this: Icon imageIcon = new ImageIcon("MyImage.jpg"); JPanel myPanel = new JPanel(); myPanel.add(new JLabel(imageIcon));