Hi, i've created a Image in a label using
image = new ImageIcon("logo.jpg");
pnllogo = new JLabel(image);
pnllogo.setBounds(0, 0, 287, 77);
loginGUI.getContentPane().add(pnllogo);
loginGUI is the frame, and pnlLogo is the Label with the picture.. If i wanted to change the picture in that label lets say on the click of a button what would I need to do...
I tried changing the location of the logo in image to the new picture but in theory that doesn't do noting, if correct I need to update the whole pnllogo or the Frame..? how would I go about it.
Thanks