Problem with StyledLabel in MacOSX

This is the forum for JIDE Common Layer which is open sourced at https://github.com/jidesoft/jide-oss. Please note, JIDE technical support doesn't monitor this forum as often as other forums. Please consider subscribe for technical support for JIDE Common Layer so that you can use customer only forum to get a timely response.

Moderator: JIDE Support

Forum rules
Community driven forum for open source JIDE Common Layer. JIDE technical support doesn't monitor this forum as often as other forums. If you only use JIDE Common Layer, please consider subscribing for technical support for JIDE Common Layer so that you can use customer only forum to get a timely response.

Problem with StyledLabel in MacOSX

Postby Caires10 » Mon Oct 04, 2010 2:02 am

Hi,

I'm having the following problem. When I run my application on MACOSX this doesn't start and does not throw an exception. I already made debugging and the problem is in the creation of a StyledLabel (new StyledLabel ())
Anyone know if the creation of this object, in MACOSX, can bring some kind of problem?

Best regards
Caires10
 
Posts: 69
Joined: Sun Feb 28, 2010 8:38 am

Re: Problem with StyledLabel in MacOSX

Postby JIDE Support » Mon Oct 04, 2010 8:56 am

We tested on Mac OS X so StyleLabel should be the problem. Could you please make a simple test case for it?

Thanks,
JIDE Software Technical Support Team
JIDE Support
Site Admin
 
Posts: 37219
Joined: Sun Sep 14, 2003 10:49 am

Re: Problem with StyledLabel in MacOSX

Postby Caires10 » Mon Oct 04, 2010 10:30 am

Ok, i'll make that test case and post here

Best regards
Caires10
 
Posts: 69
Joined: Sun Feb 28, 2010 8:38 am

Re: Problem with StyledLabel in MacOSX

Postby 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.
Caires10
 
Posts: 69
Joined: Sun Feb 28, 2010 8:38 am

Re: Problem with StyledLabel in MacOSX

Postby JIDE Support » Wed Oct 06, 2010 9:19 am

Yes, the related properties are listed below. Please try to fill the "textHighlight" property in your L&F.

Thanks,
JIDE Software Technical Support Team
JIDE Support
Site Admin
 
Posts: 37219
Joined: Sun Sep 14, 2003 10:49 am

Re: Problem with StyledLabel in MacOSX

Postby Caires10 » Wed Oct 06, 2010 9:35 am

Ok i'll try that and then I'll give some feedback.
Thanks for all the support.

Best regards
Caires10
 
Posts: 69
Joined: Sun Feb 28, 2010 8:38 am


Return to JIDE Common Layer Open Source Project Discussion (Community Driven)

Who is online

Users browsing this forum: No registered users and 61 guests