by Caires10 » Wed Oct 06, 2010 7:31 am
Hi,
While doing the test case, I noticed that the problem is not really the StyledLabel but the combination of the StyledLabel and a Look&Feel that I created. In that test case (which did not have my L&F), the StyledLabel it's rendered as well as in my application.
Anyway, when my L&F is used in the test case, I got the following exception:
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
at javax.swing.plaf.ColorUIResource.<init>(ColorUIResource.java:47)
at com.jidesoft.plaf.vsnet.VsnetMetalUtils.initComponentDefaults(Unknown Source)
at com.jidesoft.plaf.LookAndFeelFactory.installJideExtension(Unknown Source)
at com.jidesoft.plaf.LookAndFeelFactory.installJideExtension(Unknown Source)
at com.jidesoft.plaf.LookAndFeelFactory.installJideExtension(Unknown Source)
at labeldemo.LabelDemo$1.run(LabelDemo.java:74)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:633)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Anyone knows what might be causing the problem? I have to fill some of the properties of L&F?
Best regards.