@Override
  public void layoutContainer(Container parent) {
    super.layoutContainer(parent);
    if (!myCorner.isVisible()) {
      return;
    }
    JScrollBar vsb = this.vsb;
    JScrollBar hsb = this.hsb;
    if (vsb == null && hsb == null) {
      return;
    }
    Rectangle cornerBounds = myCorner.getBounds();
    if (vsb != null) {
      vsb.setSize(vsb.getBounds().width, cornerBounds.y - 3);
    }
    if (hsb != null) {
      hsb.setSize(cornerBounds.x - 3, hsb.getBounds().height);
    }
  }
@Override
  public void layoutContainer(Container parent)