void (Component c, Graphics g, int x, int y) { getScaleContext().update(); if (myScaledIcon == null) { float scale = getScale(); myScaledIcon = scale == 1f ? myIcon : IconUtil.scale(myIcon, null, scale); } myScaledIcon.paintIcon(c, g, myScaledOffset + x, y); }