@Override
  protected void paintComponent(Graphics g) {
    super.paintComponent(g);
    Graphics2D g2d = (Graphics2D)g;

    g2d.setColor(myColor);
    g2d.setComposite(myComposite1);
    paintOther1(g2d);

    g2d.setColor(myBorderColor);
    g2d.setComposite(myComposite2);
    paintOther2(g2d);
  }
@Override
  protected void paintComponent(Graphics g)