Hi! I'm teaching myself java using the Head First Java 2nd Edition book. I typed in the SimpleGui1B example (see below) and got it to compile fine. However, when I run it I get a long list of exception errors. I include the first 8 or so below. I am using jdk1.6.0 on a Windows XP.
Thanks in advance!
Doug
<<<< code>>>
<<<< runtime error messages >>>>
C:\JavaFiles>java SimpleGui1B
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
at SimpleGui1B.actionPerformed(SimpleGui1B.java:26)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.ActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
...etc... for 19 more errors.
[edit]Add code tags. CR[/edit]
[ August 03, 2008: Message edited by: Campbell Ritchie ]