private Rectangle calculateIconRect() { Rectangle iconR = new Rectangle(); Icon icon = isEnabled() ? getIcon() : getDisabledIcon(); iconR.x = iconR.y = iconR.width = iconR.height = 0; if (icon != null) { iconR.width = icon.getIconWidth(); iconR.height = icon.getIconHeight(); } else { iconR.width = iconR.height = 0; } return iconR; }
private Rectangle calculateIconRect() { Rectangle iconR = new Rectangle(); Icon icon = isEnabled() ? getIcon() : getDisabledIcon(); iconR.x = iconR.y = iconR.width = iconR.height = 0; if (icon != null) { iconR.width = icon.getIconWidth(); iconR.height = icon.getIconHeight(); } else { iconR.width = iconR.height = 0; } return iconR; }
private Rectangle calculateIconRect() { Rectangle iconR = new Rectangle(); Icon icon = isEnabled() ? getIcon() : getDisabledIcon(); iconR.x = iconR.y = iconR.width = iconR.height = 0; if (icon != null) { iconR.width = icon.getIconWidth(); iconR.height = icon.getIconHeight(); } else { iconR.width = iconR.height = 0; } return iconR; }
private Rectangle calculateIconRect() { Rectangle iconR = new Rectangle(); Icon icon = isEnabled() ? getIcon() : getDisabledIcon(); iconR.x = iconR.y = iconR.width = iconR.height = 0; if (icon != null) { iconR.width = icon.getIconWidth(); iconR.height = icon.getIconHeight(); } else { iconR.width = iconR.height = 0; } return iconR; }
private Rectangle calculateIconRect() { Rectangle iconR = new Rectangle(); Icon icon = isEnabled() ? getIcon() : getDisabledIcon(); iconR.x = iconR.y = iconR.width = iconR.height = 0; if (icon != null) { iconR.width = icon.getIconWidth(); iconR.height = icon.getIconHeight(); } else { iconR.width = iconR.height = 0; } return iconR; }