Hi. I need help with setting an image from the internet as my world background. I tried importing file and using setBackground, but nothing works. Can someone help me?


1 2 3 4 5 6 7 8 | public MyWorld() { super ( 600 , 400 , 1 ); GreenfootImage bg = new GreenfootImage( "background.jpg" ); bg.scale(getWidth(), getHeight()); setBackground(bg); // etc. } |