Results 1 to 5 of 5

Thread: jgoodies dependency

  1. #1
    Join Date
    Jul 2005
    Posts
    3

    Default jgoodies dependency

    Hi!

    While playing around with Spring RCP I tried it on Mac OS X and on Linux. While on Linux everything works as expected, I found jgoodies to cause problems on the Mac.

    Please see my Blog post for a description of the error. On the Mac a NullPointerException is thrown when you click on a menu. It's impossible to select a menu item.

    This raises the question: is jgoodies a requirement or optional?

    Stephan

  2. #2
    Join Date
    Aug 2004
    Posts
    229

    Default

    It's been a while since I've setup our JGoodies configuration, but if I remember correctly, JGoodies L&F is optional with Spring-rich. Off the top of my head, I believe Spring-rich uses a "LookAndFeelConfigurer" in the Spring config that can be setup (or reimplemented if needed) to use an alternate L&F, or the default L&F. In fact, try removing the JGoodies looks configurer from the configuration altogether and see what happens.

    - Andy

  3. #3
    Join Date
    Jul 2005
    Posts
    3

    Default

    In getHeaderBackground() of class SimpleInternalFrame it has:

    if (LookUtils.IS_LAF_WINDOWS_XP_ENABLED)
    c = UIManager.getColor("InternalFrame.activeTitleGradi ent");

    It's because of this that at least the looks.jar from jgoodies has to be present on a Mac even if the L&F is not used.

  4. #4
    Join Date
    Jul 2005
    Location
    Austria
    Posts
    105

    Default

    Here is the configuriation in the richtclient-application-context.xml

    Code:
    <bean id="lookAndFeelConfigurer" class="org.springframework.richclient.application.config.JGoodiesLooksConfigurer">
    		<property name="theme">
    			<bean class="com.jgoodies.looks.plastic.theme.ExperienceBlue"/>
    		</property>
    	</bean>
    markus

  5. #5
    Join Date
    Jul 2005
    Posts
    3

    Default

    Demo,
    that's right. But... If you do not use this L&F configuration, you still have to include jgoodies look.jar, because of the method call I showed in my previous post.

    Question is: can LookUtils.IS_LAF_WINDOWS_XP_ENABLED be made optional?

Similar Threads

  1. Replies: 1
    Last Post: Jul 4th, 2005, 01:02 PM
  2. could not satisfy dependencies
    By springuser in forum Container
    Replies: 4
    Last Post: Apr 26th, 2005, 01:15 PM
  3. Replies: 1
    Last Post: Apr 25th, 2005, 07:37 PM
  4. Debug exceptions using ContextSingletonBeanFactoryLocator
    By timothygordon32 in forum Container
    Replies: 2
    Last Post: Feb 21st, 2005, 11:19 AM
  5. setting a dependency on a factory result
    By fox9 in forum Container
    Replies: 3
    Last Post: Feb 18th, 2005, 05:23 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •