Example #1
0
 private void clearPanel() {
   Component[] components = getComponents();
   for (int c = 0; c < components.length; c++) {
     components[c].setVisible(false);
   }
   validate();
   if ((normalHeight > 0) && (addHUDComponent != null)) {
     // restore dialog to the normal height if was in HOLD mode
     addHUDComponent.setHeight(normalHeight);
   }
 }