Re: [Microba-controls] NPE on reloading page with applet containing DatePicker
Brought to you by:
michaelbaranov
|
From: Himanshu R. <him...@gm...> - 2008-09-15 12:02:11
|
OK....if I cache applets, it does not help... On Mon, Sep 15, 2008 at 11:53 AM, Himanshu Ranavat < him...@gm...> wrote: > Hi, > > I am using DatePicker in an applet. (JRE - 1.5.12 and JDK 1.5) > If I change the page and visit the page with the applet again, the date > picker does not instantiate. this is the stack trace: > > Exception in thread "AWT-EventQueue-3" java.lang.NullPointerException > at java.util.Hashtable.remove(Unknown Source) > at javax.swing.UIDefaults.put(Unknown Source) > at > com.michaelbaranov.microba.common.MicrobaComponent.updateUI(MicrobaComponent.java:41) > at > com.michaelbaranov.microba.calendar.CalendarPane.<init>(CalendarPane.java:195) > at > com.michaelbaranov.microba.calendar.DatePicker.<init>(DatePicker.java:120) > at > com.michaelbaranov.microba.calendar.DatePicker.<init>(DatePicker.java:105) > > Any Ideas or work arounds. (If I restart the browser everything works > fine). Also, I have disabled caching on applets. > > > Looks like UIManager.get(this.getUIClassID()) in MicrobaComponent is > returning null or in other words UIManager cannot locate the defaults for > the UI ClassID of the DatePicker > > Himanshu > |