void (Icon icon, int horizontalAlignment, int verticalAlignment) { super.setIcon(icon); if (myIconLabel != null) { myIconLabel.setIcon(icon); myIconLabel.setHorizontalAlignment(horizontalAlignment); myIconLabel.setVerticalAlignment(verticalAlignment); updateLayout(); updateTextAlignment(); } }