public void setToolBarMode(boolean enable) { if (enable) { if (!outerpanel.isAncestorOf(toolbar)) { outerpanel.add(toolbar, BorderLayout.PAGE_START); } } else { outerpanel.remove(toolbar); } }
public void setStatusBarMode(boolean enable) { if (enable) { if (!outerpanel.isAncestorOf(statusbar)) { outerpanel.add(statusbar, BorderLayout.SOUTH); } } else { outerpanel.remove(statusbar); pack(); } }