Ejemplo n.º 1
0
 public void start(Point p) {
   // Validate frames that have preset sizes
   // Pack frames that have useful preferred size info, e.g. from their layout
   if (packFrame) {
     this.pack();
   } else {
     this.validate();
   }
   if (parent != null) {
     FrameControllerList.placeRelativeToComponent(this, parent, p);
   } else {
     getFrameList().placeRelativeToMain(this);
   }
   if (initFocusComponent != null) {
     initFocusComponent.requestFocus();
   }
   //      okButton.requestFocus();
   bClosed = false;
   super.setVisible(true);
   if (m_modal) {
     dispose();
   }
 }
Ejemplo n.º 2
0
 // The implementation of the FrameController Interface
 public void close() {
   if (bClosed) return;
   dispose();
 }