本文整理了Java中javax.swing.JMenuItem.getDisabledIcon()
方法的一些代码示例,展示了JMenuItem.getDisabledIcon()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JMenuItem.getDisabledIcon()
方法的具体详情如下:
包路径:javax.swing.JMenuItem
类名称:JMenuItem
方法名:getDisabledIcon
暂无
代码示例来源:origin: com.jidesoft/jide-oss
icon = b.getDisabledIcon();
if (icon == null) {
icon = b.getIcon();
代码示例来源:origin: com.jidesoft/jide-oss
icon = b.getDisabledIcon();
if (icon == null) {
icon = b.getIcon();
代码示例来源:origin: com.jidesoft/jide-oss
Icon icon;
if (!model.isEnabled()) {
icon = b.getDisabledIcon();
if (icon == null) {
icon = b.getIcon();
代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/toniclf
if (!model.isEnabled())
icon= (Icon) b.getDisabledIcon();
代码示例来源:origin: com.jidesoft/jide-oss
Icon icon;
if (!model.isEnabled()) {
icon = b.getDisabledIcon();
代码示例来源:origin: com.github.insubstantial/substance
icon = menuItem.getDisabledIcon();
} else if (model.isPressed() && model.isArmed()) {
icon = menuItem.getPressedIcon();
代码示例来源:origin: org.java.net.substance/substance
icon = menuItem.getDisabledIcon();
} else if (model.isPressed() && model.isArmed()) {
icon = menuItem.getPressedIcon();
代码示例来源:origin: khuxtable/seaglass
static void paintIcon(Graphics g, SeaGlassMenuItemLayoutHelper lh,
MenuItemLayoutHelper.LayoutResult lr) {
if (lh.getIcon() != null) {
Icon icon;
JMenuItem mi = lh.getMenuItem();
ButtonModel model = mi.getModel();
if (!model.isEnabled()) {
icon = mi.getDisabledIcon();
} else if (model.isPressed() && model.isArmed()) {
icon = mi.getPressedIcon();
if (icon == null) {
// Use default icon
icon = mi.getIcon();
}
} else {
icon = mi.getIcon();
}
if (icon != null) {
Rectangle iconRect = lr.getIconRect();
SynthIcon.paintIcon(icon, lh.getContext(), g, iconRect.x,
iconRect.y, iconRect.width, iconRect.height);
}
}
}
代码示例来源:origin: khuxtable/seaglass
Icon icon;
if (!model.isEnabled()) {
icon = (Icon) b.getDisabledIcon();
} else if (model.isPressed() && model.isArmed()) {
icon = (Icon) b.getPressedIcon();
内容来源于网络,如有侵权,请联系作者删除!