omg *face smack* I never thought to put a null there doh! Thank you so much! Wow >.> it just seems so apparent now. But of course a new problem arises, it still won't load in full screen.
The whole point of this program is to trick a game addicted friend that he's playing call of duty 4 what he DOESN'T know is that it's going to be a very clever rick roll/annoying program and i'm going to make it so he has to press something like the tilde sign to stop it, the only problem is I can't really continue if it doesn't load full screen lol(preferably undecorated).
import java.awt.*;
import java.applet.*;
import java.awt.Image;
import javax.swing.*;
import java.awt.Frame;
public class Test extends Applet {
private Image picture;
public void init() {
resize(800,600);
picture=getImage(getDocumentBase(),"CallofDuty.jpg");
}
public void paint(Graphics g) {
g.drawImage(picture,0,0,this);
}
public static void ControlPanel() {
GraphicsDevice myDevice=null;
Window CallofDuty=null;
myDevice.setFullScreenWindow(CallofDuty);