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