本文整理匯總了Java中net.infonode.docking.theme.BlueHighlightDockingTheme類的典型用法代碼示例。如果您正苦於以下問題:Java BlueHighlightDockingTheme類的具體用法?Java BlueHighlightDockingTheme怎麽用?Java BlueHighlightDockingTheme使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
BlueHighlightDockingTheme類屬於net.infonode.docking.theme包,在下文中一共展示了BlueHighlightDockingTheme類的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: createThemesMenu
import net.infonode.docking.theme.BlueHighlightDockingTheme; //導入依賴的package包/類
/**
* Creates the menu where the theme can be changed.
*
* @return the theme menu
*/
private JMenu createThemesMenu() {
JMenu themesMenu = new JMenu("Themes");
DockingWindowsTheme[] themes = { new DefaultDockingTheme(),
new BlueHighlightDockingTheme(), new SlimFlatDockingTheme(),
new GradientDockingTheme(), new ShapedGradientDockingTheme(),
new SoftBlueIceDockingTheme(), new ClassicDockingTheme() };
ButtonGroup group = new ButtonGroup();
for (int i = 0; i < themes.length; i++) {
final DockingWindowsTheme theme = themes[i];
JRadioButtonMenuItem item = new JRadioButtonMenuItem(
theme.getName());
item.setSelected(i == 4);
group.add(item);
themesMenu.add(item).addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
// Clear the modified properties values
properties.getMap().clear(true);
setTheme(theme);
}
});
}
return themesMenu;
}