Where did you initialize the JLabel? It seems like you might be missing the following.
JLabel image = new JLabel();
// And then then set the imageicon
image.setIcon(new...
Type: Posts; User: Krumpir
Where did you initialize the JLabel? It seems like you might be missing the following.
JLabel image = new JLabel();
// And then then set the imageicon
image.setIcon(new...
To maximize a JFrame you need the following code.
myFrame.setExtendedState(JFrame.MAXIMIZED_BOTH);
And to put an image in a JPanel you would create a JLabel and set the ImageIcon for that JLabel....