I got a JLayeredPane with a JLabel containing an Image in it. This looks like this:
JLayeredPane panel = new JLayeredPane();
JLabel label1 = new JLabel();
label1.setIcon(new ImageIcon(image));
label1.setBounds(0, 0, 1300, 900);
panel.add(label1, 0);
frame.add(panel);
frame.setSize(1320,900);
frame.setVisible(true);
And some other images in the JLayeredPane.
It all displays fine. But when I scale the frame in windows the images dont scale. (The images stay the same size and the window just gets bigger with greyspace.) Now my question: What can I do so the images are always filling the frame no matter how i scale it?