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