icon java lable code example
Example 1: Jlabel icon
ImageIcon image = new ImageIcon("c:\\path\\image.png");
imagelabel = new JLabel(character, image, JLabel.CENTER);
frame.add(imagelabel);
Example 2: icon label java
yourLabel.setIcon(new ImageIcon("adressOfYourImage.ext"));