javax.swing.JMenuItem.setRolloverEnabled()方法的使用及代码示例

x33g5p2x  于2022-01-21 转载在 其他  
字(3.5k)|赞(0)|评价(0)|浏览(103)

本文整理了Java中javax.swing.JMenuItem.setRolloverEnabled()方法的一些代码示例,展示了JMenuItem.setRolloverEnabled()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JMenuItem.setRolloverEnabled()方法的具体详情如下:
包路径:javax.swing.JMenuItem
类名称:JMenuItem
方法名:setRolloverEnabled

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();
}

相关文章

JMenuItem类方法