if (c instanceof JideButton && ((JideButton) c).getButtonStyle() == JideButton.TOOLBAR_STYLE) { gfx.drawLine(x + 1, y, x + w - 2, y); // top gfx.drawLine(x, y + 1, x, y + h - 2); // left
private void configureCursor() { if (getButtonStyle() == HYPERLINK_STYLE && isRolloverEnabled() && ((getText() != null && getText().length() > 0) || getIcon() != null)) { _savedCursor = getCursor(); setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR)); } else { if (_savedCursor != null) { setCursor(_savedCursor); _savedCursor = null; } } }
textRect.y, textRect.x + fm.getAscent()); if (b instanceof JideButton && ((JideButton) b).getButtonStyle() == JideButton.HYPERLINK_STYLE && (((JideButton) b).isAlwaysShowHyperlink() || b.getModel().isRollover())) { g.drawLine(textRect.x, textRect.y, textRect.x, textRect.y + textRect.height); textRect.x, textRect.y + fm.getAscent()); if (b instanceof JideButton && ((JideButton) b).getButtonStyle() == JideButton.HYPERLINK_STYLE && (((JideButton) b).isAlwaysShowHyperlink() || b.getModel().isRollover())) { g.drawLine(textRect.x, textRect.y + textRect.height - 2, textRect.x + textRect.width, textRect.y + textRect.height - 2);
if (isFloatingIcon() && model.isEnabled()) { if (model.isRollover() && !model.isPressed() && !model.isSelected()) { if (!"true".equals(SecurityUtils.getProperty("shadingtheme", "false")) && b instanceof JideButton && ((JideButton) b).getButtonStyle() == JideButton.TOOLBAR_STYLE) { if (icon instanceof ImageIcon) { ImageIcon shadow = IconsFactory.createGrayImage(((ImageIcon) icon).getImage());
if (b instanceof JideButton && ((JideButton) b).getButtonStyle() == JideButton.TOOLBAR_STYLE) { Rectangle rect = new Rectangle(0, 0, b.getWidth(), b.getHeight()); int state = JideSwingUtilities.getButtonState(b); else if (b instanceof JideButton && ((JideButton) b).getButtonStyle() == JideButton.FLAT_STYLE) { paintBackgroundInFlatStyle(g, b, paintBackground); else if (b instanceof JideButton && ((JideButton) b).getButtonStyle() == JideButton.TOOLBOX_STYLE) { paintBackgroundInToolboxStyle(g, b, paintBackground, paintDefaultBorder);