public void setContent(JComponent c) {
    myContent = c;
    add(c, BorderLayout.CENTER);

    if (myBorderless) {
      UIUtil.removeScrollBorder(c);
    }

    revalidate();
    repaint();
  }
Пример #2
0
  public void setToolbar(JComponent c) {
    myToolbar = c;

    if (myVertical) {
      add(c, BorderLayout.NORTH);
    } else {
      add(c, BorderLayout.WEST);
    }

    if (myBorderless) {
      UIUtil.removeScrollBorder(c);
    }

    revalidate();
    repaint();
  }