I'm displaying an image in a JFrame using a JLabel and setting it's icon.
It works the first time, but whenever I go to change the image, it remains what I set it the first time, so I've tried this and still the same result.
contentPane.remove(lblPlaceholder);
lblPlaceholder = null;
lblPlaceholder = new JLabel("");
lblPlaceholder.setBounds(10, 322, 125, 32);
contentPane.add(lblPlaceholder);
lblPlaceholder.setIcon(new ImageIcon("tempimage.png"));
How can I get it to change it's image? I've also tried repainting the JFrame with no results.