Trying to do some JAva homework where we need an applet...
This is the code within my html file:
<HTML>
<HEAD>
</HEAD>
<BODY BGCOLOR="000000">
<CENTER>
<APPLET
code = "Homework2.class"
width = "500"
height = "500"
>
</APPLET>
</CENTER>
</BODY>
</HTML>
______________________
The applet won't load 🙁
This is what my java program starts with:
import java.applet.*;
import java.awt.*;
import javax.swing.JOptionPane;
public class Homework2 extends Applet
{
}
I excluded all the crap within the class Homework2.
I get a nullpointexception error.
Can anyone spot what I'm doing wrong?
This is the code within my html file:
<HTML>
<HEAD>
</HEAD>
<BODY BGCOLOR="000000">
<CENTER>
<APPLET
code = "Homework2.class"
width = "500"
height = "500"
>
</APPLET>
</CENTER>
</BODY>
</HTML>
______________________
The applet won't load 🙁
This is what my java program starts with:
import java.applet.*;
import java.awt.*;
import javax.swing.JOptionPane;
public class Homework2 extends Applet
{
}
I excluded all the crap within the class Homework2.
I get a nullpointexception error.
Can anyone spot what I'm doing wrong?