Exemple #1
0
 private void setChoosers() {
   fieldPanel.removeAll();
   for (int i = 0; i < choosers.size(); i++) {
     Chooser c = (Chooser) choosers.get(i);
     if (c.isWanted) fieldPanel.add(c.field);
   }
 }
Exemple #2
0
 void setDrawHorizAndVert(boolean drawHoriz, boolean drawVert) {
   drawingPanel.removeAll();
   if (drawHoriz && drawVert) {
     splitDraw.setTopComponent(panz);
     splitDraw.setBottomComponent(vertPanel);
     drawingPanel.add(splitDraw, BorderLayout.CENTER);
   } else if (drawHoriz) {
     drawingPanel.add(panz, BorderLayout.CENTER);
   } else if (drawVert) {
     drawingPanel.add(splitDraw, BorderLayout.CENTER);
   }
 }