BufferedImage image = ImageIO.read(getClass().getResourceAsStream("/bilder/demo.png"));
try {
Image image = ImageIO.read(new FileInputStream("Bilder/demo.png")) ;
JLabel imageLabel= new JLabel(new ImageIcon(image));
imageLabel.setBounds(0, 0, 10, 10);
add(imageLabel);
imageLabel.setVisible(true);
} catch(Exception e) {
JOptionPane.showMessageDialog(this, "Fehler" + "
" + e);
}