void (Graphics g) { super.paintComponent(g); if (!myPainting) return; if (myFill) { g.setColor(UIUtil.getBgFillColor(this)); g.fillRect(0, 0, getWidth(), getHeight()); } g.translate(myXTransform, myYTransform); if (!isEnabled()) { myInactive.paintIcon(this, g, 0, 0); } else if ((myBehavior.isHovered() && myHoveringEnabled) || hasFocus()) { paintHover(g); myHovered.paintIcon(this, g, 0, 0); } else { myRegular.paintIcon(this, g, 0, 0); } g.translate(0, 0); }