本文整理了Java中javax.swing.JMenuItem.setRolloverEnabled()
方法的一些代码示例,展示了JMenuItem.setRolloverEnabled()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JMenuItem.setRolloverEnabled()
方法的具体详情如下:
包路径:javax.swing.JMenuItem
类名称:JMenuItem
方法名:setRolloverEnabled
暂无
代码示例来源:origin: com.jtattoo/JTattoo
protected void installDefaults() {
super.installDefaults();
Boolean isRolloverEnabled = (Boolean)UIManager.get("MenuBar.rolloverEnabled");
if (isRolloverEnabled.booleanValue()) {
menuItem.setRolloverEnabled(true);
}
}
代码示例来源:origin: GoldenGnu/jeveassets
jMenuItem.setActionCommand(FilterGuiAction.MANAGER.name());
jMenuItem.addActionListener(listener);
jMenuItem.setRolloverEnabled(true);
jLoadFilter.add(jMenuItem);
jMenuItem.setRolloverEnabled(true);
jMenuItem.setActionCommand(s);
jMenuItem.addActionListener(listener);
jMenuItem.setRolloverEnabled(true);
jMenuItem.setActionCommand(s);
jMenuItem.addActionListener(listener);
代码示例来源:origin: com.jidesoft/jide-oss
@Override
protected void installDefaults() {
_painter = (ThemePainter) UIDefaultsLookup.get("Theme.painter");
_shadowColor = UIDefaultsLookup.getColor("controlShadow");
_darkShadowColor = UIDefaultsLookup.getColor("controlDkShadow");
_highlight = UIDefaultsLookup.getColor("controlHighlight");
_lightHighlightColor = UIDefaultsLookup.getColor("controlLtHighlight");
menuItem.setRolloverEnabled(true);
super.installDefaults();
}
代码示例来源:origin: com.jidesoft/jide-oss
@Override
protected void installDefaults() {
_painter = (ThemePainter) UIDefaultsLookup.get("Theme.painter");
_shadowColor = UIDefaultsLookup.getColor("controlShadow");
_darkShadowColor = UIDefaultsLookup.getColor("controlDkShadow");
_highlight = UIDefaultsLookup.getColor("controlHighlight");
_lightHighlightColor = UIDefaultsLookup.getColor("controlLtHighlight");
menuItem.setRolloverEnabled(true);
super.installDefaults();
}
代码示例来源:origin: com.github.insubstantial/substance
@Override
protected void installDefaults() {
super.installDefaults();
this.menuItem.setRolloverEnabled(true);
// this.menuItem.setOpaque(false);
this.arrowIcon = new MenuArrowIcon((JMenu) this.menuItem);
this.defaultTextIconGap = SubstanceSizeUtils
.getTextIconGap(SubstanceSizeUtils
.getComponentFontSize(this.menuItem));
this.menuItem.putClientProperty(SubstanceLookAndFeel.FLAT_PROPERTY,
Boolean.TRUE);
LookAndFeel.installProperty(menuItem, "opaque", Boolean.FALSE);
}
代码示例来源:origin: org.java.net.substance/substance
@Override
protected void installDefaults() {
super.installDefaults();
this.menuItem.setRolloverEnabled(true);
// this.menuItem.setOpaque(false);
this.arrowIcon = new MenuArrowIcon((JMenu) this.menuItem);
this.defaultTextIconGap = SubstanceSizeUtils
.getTextIconGap(SubstanceSizeUtils
.getComponentFontSize(this.menuItem));
this.menuItem.putClientProperty(SubstanceLookAndFeel.FLAT_PROPERTY,
Boolean.TRUE);
LookAndFeel.installProperty(menuItem, "opaque", Boolean.FALSE);
}
代码示例来源:origin: com.jidesoft/jide-oss
@Override
protected void installDefaults() {
_painter = (ThemePainter) UIDefaultsLookup.get("Theme.painter");
_isFloatingIcon = UIDefaultsLookup.getBoolean("Icon.floating");
_shadowColor = UIDefaultsLookup.getColor("JideButton.shadow");
_darkShadowColor = UIDefaultsLookup.getColor("JideButton.darkShadow");
_highlight = UIDefaultsLookup.getColor("JideButton.highlight");
_lightHighlightColor = UIDefaultsLookup.getColor("JideButton.light");
menuItem.setRolloverEnabled(true);
super.installDefaults();
}
内容来源于网络,如有侵权,请联系作者删除!