void (Graphics g, ActionButtonComponent actionButton, Icon originalIcon, Icon arrowIcon) { Point iconPos = getIconPosition(actionButton, originalIcon); int arrowIconX = iconPos.x + 1 + (originalIcon.getIconWidth() - arrowIcon.getIconWidth()); int arrowIconY = iconPos.y + 1 + (originalIcon.getIconHeight() - arrowIcon.getIconHeight()); arrowIcon.paintIcon(actionButton instanceof Component ? (Component)actionButton : null, g, arrowIconX, arrowIconY); }