public void setContent(JComponent c) { myContent = c; add(c, BorderLayout.CENTER); if (myBorderless) { UIUtil.removeScrollBorder(c); } revalidate(); repaint(); }
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(); }