This code is for a java applet, and you enter a word, hit the enter key, then click a check box and then the answer will output just below the check box, if you enter a word, hit the enter key, then...
Type: Posts; User: SashaThompson
This code is for a java applet, and you enter a word, hit the enter key, then click a check box and then the answer will output just below the check box, if you enter a word, hit the enter key, then...
I think the null variable is the boolean, isPoliteForm but I don't know why it doesn't have a valid value...
Hope I did it right!
I think there is an error with the object because it seems that no value is assigned to the object because it is coming up with the same error and that line is where the object is being called, also...
I found that variable, I deleted the variable len for the purpose of seeing if that got rid of the error and once I deleted it I got the same issue but it said no value was being assigned to...
Error Message:
Exception in thread "AWT-EventQueue-1" java.lang.NullPointerException
at MiniMajorProject.itemStateChanged(MiniMajorProject.java:36)
at java.awt.Checkbox.processItemEvent(Unknown...
Here is my main piece of code:
import java.awt.*;
import java.applet.*;
import java.awt.event.*;
public class MiniMajorProject extends Applet implements KeyListener, ItemListener {
...