I am trying to make a very basic game with Java and I am having trouble displaying an image on a JFrame. It has worked in the past for me and now is not, i can\'t s
JFrame
Try,
ImageIcon image = new ImageIcon("c:\\path\\image.png"); imagelabel = new JLabel(character, image, JLabel.CENTER); frame.add(imagelabel);
Take a look at Tutorial - How to use Icons