troubleshooting Question

create Applet in netbean IDE 5

Avatar of ellandrd
ellandrdFlag for Ireland asked on
28 Comments4 Solutions695 ViewsLast Modified:
how can you create an applet in netbeans.

i have created my and .class files and cant run them using netbeans - right-click > compile, then right-click > Run File, but if i try running it in a webpage it dont show up!

im using the latest build of netbeans IDE 5.

I also get this error when trying to run the applet in netbeans.  like it runs fine, but i get this error.

Warning: Can't read AppletViewer properties file: \\mail01abzpi\homes$\sdelaney\my documents\.hotjava\properties Using defaults.

in my html page i get this in the status bar:

exception: java.lang.NullPointerException

any ideas?

here is my

 * Created on 03 February 2006, 10:48
package u0207372.gui;

import javax.swing.JApplet;
 * @author u0207372
public class PCApplet extends JApplet {
    /** Creates a new instance of PCApplet */
    public PCApplet() {
        PCStandalone pcs = new PCStandalone();
        this.add( pcs );

here is my index.html:

      <title>Pocket Calculator</title>
<applet code="PCApplet.class" width="210" height="230"></applet>
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 4 Answers and 28 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 4 Answers and 28 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros