Problem with LookAndFeel:!_NEWLINE_!UIManager.addAuxiliaryLookAndFeel(new ExampleAuxiliaryLookAndFeel());
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Francis_Alonso
Posted On:   Tuesday, April 24, 2001 09:36 AM

Hello everybody ! I have a problem when I try to multiplex the LookAndFeel of my application. I want my application to have a default LookAndFeel and override a new one to be multiplexed with: UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); UIManager.addAuxiliaryLookAndFeel(new ExampleAuxiliaryLookAndFeel()); but these instructions throws me a null pointer exception: java.lang.NullPointerException at java.util.Hashtable.get(Hashtable.java:320) at javax.swing.UIDefaults.get(UIDefaults.java:102) at javax.swing.UIDefaults.getUIClass(UIDefaults.java:345) at javax.swing.UIDefaults.getUI(UIDefaults.java:418) at javax.swing.UIManager.getUI(UIManager.jav   More>>

Hello everybody !

I have a problem when I try to multiplex the LookAndFeel of my application. I want my application to have a default LookAndFeel and override a new one to be multiplexed with:

UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
UIManager.addAuxiliaryLookAndFeel(new ExampleAuxiliaryLookAndFeel());

but these instructions throws me a null pointer exception:

java.lang.NullPointerException
at java.util.Hashtable.get(Hashtable.java:320)
at javax.swing.UIDefaults.get(UIDefaults.java:102)
at javax.swing.UIDefaults.getUIClass(UIDefaults.java:345)
at javax.swing.UIDefaults.getUI(UIDefaults.java:418)
at javax.swing.UIManager.getUI(UIManager.java:563)
at javax.swing.JRootPane.updateUI(JRootPane.java:238)
at javax.swing.JRootPane. (JRootPane.java:203)
at javax.swing.JFrame.createRootPane(JFrame.java:213)
at javax.swing.JFrame.frameInit(JFrame.java:203)
at javax.swing.JFrame. (JFrame.java:142)
at LookAndFeel.LookAndFeelFrame. (LookAndFeelFrame.java:12)
at LookAndFeel.LookAndFeelApp. (LookAndFeelApp.java:12)
at LookAndFeel.LookAndFeelApp.main(LookAndFeelApp.java:36)


Can somebody help me, and sow me an example !

THANKS !!!

   <<Less

Re: Problem with LookAndFeel:!_NEWLINE_!UIManager.addAuxiliaryLookAndFeel(new ExampleAuxiliaryLookAndFeel());

Posted By:   yuichi_sugimura  
Posted On:   Friday, June 1, 2001 08:00 PM

That is BUGID 4338458.
See the developer connection page for
Workaround.

There's no MultiRootPaneUI in MultiLookAndFeel. That's the reason why
NullPointerException occured.

They're seemed to be planning to add MultiRootPaneUI in jdk1.4.
See http://www.javasoft.com/products/jfc/tsc/articles/merlin/
About | Sitemap | Contact