private void paintSliderTick(Graphics g, Rectangle2D shape) {
    Graphics2D g2 = (Graphics2D)g.create();
    try {
      g2.setColor(ticksColor);
      g2.fill(shape);
    }
    finally {
      g2.dispose();
    }
  }
private void paintSliderTick(Graphics g, Rectangle2D shape)