@Override public void paintIcon(Component c, Graphics g, int x, int y) { g.setColor(color); g.fillRoundRect(x + 1, y + 1, 22, 22, 10, 10); }
public void onRepaint(final Graphics g) { if (highlightArea != null) { g.setColor(Color.ORANGE); g.drawRect(highlightArea.x, highlightArea.y, highlightArea.width, highlightArea.height); } }