Dashboard > Spring Rich Client Project (Spring Rich) > User Documentation > Miscellaneous stuff
  Spring Rich Client Project (Spring Rich) Log In View a printable version of the current page.  
  Miscellaneous stuff
Added by Peter De Bruycker, last edited by Peter De Bruycker on Oct 08, 2004  (view change)
Labels: 
(None)

FAQs

This page contains miscellaneous stuff that hasn't found it's home yet.

How to start the global "propertiesCommand" when double clicking in a tree or table?
  1. Add a mouse listener to the tree or table.
  2. On double click event lookup the properties command
  3. If command is enabled call execute
tree.addMouseListener(new MouseAdapter() {
    public void mouseClicked(MouseEvent e) {
        if (e.getClickCount() == 2
                && e.getButton() == MouseEvent.BUTTON1) {
            ActionCommand command = getCommandManager()
                    .getActionCommand(GlobalCommandIds.PROPERTIES);
            if (command.isEnabled()) {
                command.execute();
            }
        }
    }
});
How to change the title of the currently active view?

If your view extends AbstractView, you can use the setTitle method to change it's title.

How to change the look and feel?

To use the Metal look and feel:

<bean id="lookAndFeelCofigurer" class="org.springframework.richclient.application.config.UIManagerConfigurer">
  <property name="lookAndFeel">
    <value>javax.swing.plaf.metal.MetalLookAndFeel</value>
  </property>
</bean> 

To use the JGoodiesLooksConfigurer:

<bean id="lookAndFeelConfigurer" class="org.springframework.richclient.application.config.JGoodiesLooksConfigurer">
  <property name="plasticLookAndFeel">
    <map>
      <entry key="theme">
        <bean class="com.jgoodies.plaf.plastic.theme.ExperienceBlue"/>
      </entry>
    </map>
  </property>
</bean>

Possible entries:

  • theme: the theme you want to use
    • com.jgoodies.plaf.plastic.theme.SkyYellow
    • com.jgoodies.plaf.plastic.theme.SkyRed
    • com.jgoodies.plaf.plastic.theme.SkyPink
    • com.jgoodies.plaf.plastic.theme.SkyKrupp
    • com.jgoodies.plaf.plastic.theme.SkyGreen
    • com.jgoodies.plaf.plastic.theme.SkyBluerTahoma
    • com.jgoodies.plaf.plastic.theme.SkyBluer
    • com.jgoodies.plaf.plastic.theme.SkyBlue
    • com.jgoodies.plaf.plastic.theme.Silver
    • com.jgoodies.plaf.plastic.theme.ExperienceGreen
    • com.jgoodies.plaf.plastic.theme.ExperienceBlue
    • com.jgoodies.plaf.plastic.theme.DesertYellow
    • com.jgoodies.plaf.plastic.theme.DesertRed
    • com.jgoodies.plaf.plastic.theme.DesertGreen
    • com.jgoodies.plaf.plastic.theme.DesertBluer
    • com.jgoodies.plaf.plastic.theme.DesertBlue
    • com.jgoodies.plaf.plastic.theme.DarkStar
    • com.jgoodies.plaf.plastic.theme.BrownSugar
  • fontSizeHints: the font size hints
  • 3dEnabled: "true" or "false"
  • highConstrastFocusColorsEnabled: "true" or "false"
  • tabStyle: "Default" or "Metal"

Site running on a free Atlassian Confluence Open Source Project License granted to Spring Framework. Evaluate Confluence today.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.5.5 Build:#811 Jul 25, 2007) - Bug/feature request - Contact Administrators