javax.swing.JToggleButton.setDisabledSelectedIcon()方法的使用及代码示例

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

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

JToggleButton.setDisabledSelectedIcon介绍

暂无

代码示例

代码示例来源:origin: org.netbeans.api/org-openide-awt

@Override
public void setDisabledSelectedIcon(Icon icon) {
  //TODO use 'disabled' arrow icon
  Icon arrow = updateIcons( icon, ICON_DISABLED_SELECTED );
  super.setDisabledSelectedIcon( hasPopupMenu() ? arrow : icon );
}

代码示例来源:origin: org.gephi/ui-components

@Override
public void setDisabledSelectedIcon(Icon icon) {
  //TODO use 'disabled' arrow icon
  Icon arrow = updateIcons(icon, ICON_DISABLED_SELECTED);
  super.setDisabledSelectedIcon(hasPopupMenu() ? arrow : icon);
}

代码示例来源:origin: sing-group/GC4S

instance.setDisabledSelectedIcon(this.selectedIcon);
instance.setRolloverSelectedIcon(this.selectedIcon);

代码示例来源:origin: net.sf.squirrel-sql.plugins/hibernate

_panel.btnConnected.setDisabledSelectedIcon(_resource.getIcon(HibernatePluginResources.IKeys.CONNECTING_IMAGE));
_panel.btnConnected.repaint();
_hibnerateConnector.connect((HibernateConfiguration)_panel.cboConfigurations.getSelectedItem(), _session);

代码示例来源:origin: org.fudaa.framework.ctulu/ctulu-bu

/**
 * Sets the selected icons for a toggle button.
 */
public static void setSelectedIcons(JToggleButton _button, ImageIcon _icon, boolean _effect) {
 ImageIcon icon = _icon;
 if (_effect) icon = addDefaultEffect(_button, icon);
 if (BuPreferences.BU.getBooleanProperty("icons.grey", false)) {
  _button.setSelectedIcon(filter(_button, filter(_button, icon, BuFilters.GREY), BuFilters.getSelected()));
  _button.setRolloverSelectedIcon(filter(_button, icon, BuFilters.getSelected()));
  _button.setDisabledSelectedIcon(filter(_button, filter(_button, icon, BuFilters.getSelected()), BuFilters
    .getDisabled()));
 } else {
  _button.setSelectedIcon(filter(_button, icon, BuFilters.getSelected()));
  _button.setRolloverSelectedIcon(filter(_button, icon, BuFilters.getRollover()));
  _button.setDisabledSelectedIcon(filter(_button, icon, BuFilters.getDisabled()));
 }
}

代码示例来源:origin: org.zaproxy/zap

public static void scaleIcon(JToggleButton button) {
  if (isScaleImages() && button != null) {
    if (button.getIcon() != null && button.getIcon() instanceof ImageIcon) {
      button.setIcon(getScaledIcon((ImageIcon)button.getIcon()));
    }
    if (button.getSelectedIcon() != null && button.getSelectedIcon() instanceof ImageIcon) {
      button.setSelectedIcon(getScaledIcon((ImageIcon)button.getSelectedIcon()));
    }
    if (button.getRolloverIcon() != null && button.getRolloverIcon() instanceof ImageIcon) {
      button.setRolloverIcon(getScaledIcon((ImageIcon)button.getRolloverIcon()));
    }
    if (button.getRolloverSelectedIcon() != null && button.getRolloverSelectedIcon() instanceof ImageIcon) {
      button.setRolloverSelectedIcon(getScaledIcon((ImageIcon)button.getRolloverSelectedIcon()));
    }
    if (button.getDisabledIcon() != null && button.getDisabledIcon() instanceof ImageIcon) {
      button.setDisabledIcon(getScaledIcon((ImageIcon)button.getDisabledIcon()));
    }
    if (button.getDisabledSelectedIcon() != null && button.getDisabledSelectedIcon() instanceof ImageIcon) {
      button.setDisabledSelectedIcon(getScaledIcon((ImageIcon)button.getDisabledSelectedIcon()));
    }
    if (button.getPressedIcon() != null && button.getPressedIcon() instanceof ImageIcon) {
      button.setPressedIcon(getScaledIcon((ImageIcon)button.getPressedIcon()));
    }
  }
}

相关文章

JToggleButton类方法