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(); } }
// The implementation of the FrameController Interface public void close() { if (bClosed) return; dispose(); }