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?
- Add a mouse listener to the tree or table.
- On double click event lookup the properties command
- 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:
To use the JGoodiesLooksConfigurer:
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"