I have a got a JLabel.
JLabel background=new JLabel(new ImageIcon("C:/CraftBukkit/background.png"));
add(background);
background.setLayout(new FlowLayout());
The question is, how can I stretch/contract this image so that it is always the same size as the screen? Currently, it is either too big, too small, or not the right dimensions comparing to the screen size.
I have been unable to find any solutions on the internet.
Thanks!