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:42:58
|
hey thanks doing a Microba.init in Applet.init fixed it You may want to add this readme file in a more prominent place. just a suggestion. not many people may download the source where this file resides On Mon, Sep 15, 2008 at 12:20 PM, Michael Baranov <mic...@gm... > wrote: > Hi, > Please read readme.txt and post a quick example (applet + html page) if > it doesn't help ;-) > > Michael. > > 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 > >> > > > > > > ------------------------------------------------------------------------ > > > > ------------------------------------------------------------------------- > > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > > Build the coolest Linux based applications with Moblin SDK & win great > prizes > > Grand prize is a trip for two to an Open Source event anywhere in the > world > > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > > > > > > ------------------------------------------------------------------------ > > > > _______________________________________________ > > Microba-controls mailing list > > Mic...@li... > > https://lists.sourceforge.net/lists/listinfo/microba-controls > > |