Computer Science Canada JApplet Problem |
Author: | romantic_programmer [ Thu Nov 01, 2007 3:55 pm ] | ||
Post subject: | JApplet Problem | ||
This isn't running.. so i was wondering if their is anything wrong with my code.
here are my errors... Exception in thread "main" java.lang.NullPointerException at java.awt.Window.init(Unknown Source) at java.awt.Window.<init>(Unknown Source) at java.awt.Frame.<init>(Unknown Source) at java.awt.Frame.<init>(Unknown Source) at sun.applet.AppletViewer.<init>(Unknown Source) at sun.applet.StdAppletViewerFactory.createAppletViewer(Unknown Source) at sun.applet.AppletViewer.parse(Unknown Source) at sun.applet.AppletViewer.parse(Unknown Source) at sun.applet.Main.run(Unknown Source) at sun.applet.Main.main(Unknown Source) at sun.applet.AppletViewer.main(Unknown Source) I am so confused... as well I am using Eclipse Platform Version: 3.3.0 |
Author: | Barbarrosa [ Thu Nov 01, 2007 9:43 pm ] | ||
Post subject: | Re: JApplet Problem | ||
I think you have to name ButtonListener or Border b1 something different.
|
Author: | romantic_programmer [ Thu Nov 01, 2007 9:53 pm ] | ||
Post subject: | RE:JApplet Problem | ||
Yes i figured that because it kept telling me that it is a duplicate variable... but when i change ButtonListener it says the local variable is never read. i am so confused... to be honest that is my final issue that needs to be resolved. here is my corrections so far...
|
Author: | chrisciscoioio [ Fri Nov 02, 2007 8:07 am ] |
Post subject: | Re: JApplet Problem |
From what I have, you can see it in the question below. You should user e.getSource() == 'Name of reference to object' and then ethier set a class instance variable at the top to true or false, and return methods out of the privtae class, which should be doing no more than just flipping a switch and returning. |
Author: | romantic_programmer [ Sat Nov 03, 2007 12:59 pm ] | ||
Post subject: | RE:JApplet Problem | ||
but i do have that dont i?
|
Author: | Barbarrosa [ Tue Nov 06, 2007 11:58 pm ] |
Post subject: | Re: JApplet Problem |
You misspelled something: buttonOK.addActionListoner(b1); Should be spelled: buttonOK.addActionListener(b1); I actually have your program working. Should I post it? |
Author: | romantic_programmer [ Wed Nov 07, 2007 11:38 pm ] |
Post subject: | RE:JApplet Problem |
nah... where did i spell it wrong? as well j applets doesn't work at house... VISTA is being gay and not allowing me to access JApplets or anything involving ActiveX. |