Hi, my name is Dan and I'm a newb. I am using a JCalendar package from
http://www.toedter.com/en/jcalendar/. I created a simple
applet where I am using the JDateChooser class. I compiled my applet and got no errors. But I get this error at execution time:
java.lang.NullPointerException
at javax.swing.ImageIcon.<init>(Unknown Source)
at com.toedter.calendar.JDateChooser.<init>(JDateChooser.java:172)
at com.toedter.calendar.JDateChooser.<init>(JDateChooser.java:111)
at CalendarApplet.init(CalendarApplet.java:19)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Exception in
thread "thread applet-CalendarApplet.class" java.lang.NullPointerException
at sun.plugin.util.GrayBoxPainter.showLoadingError(Unknown Source)
at sun.plugin.AppletViewer.showAppletException(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Here's my simple applet code:
Funny thing is, if I go back to the applet code above and substitute JDateChooser with JCalendar, it works without problems. Any ideas why I'm having problems with JDateChooser? Thanks.
-Dan