The easiest way is:
image = ImageIO.read(new File(path)); JLabel picLabel = new JLabel(new ImageIcon(image));
Yayy! Now your image is a swing component! add it to a frame or panel or something similar as usual. Maybe you need repainting, for example
jpanel.add(picLabel); jpanel.repaint();
source share