• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Applet woes

Sam334

Golden Member
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?
 
Back
Top