/** * Tries to determine the internal frame this panel is part of. * * @return the parent internal frame if one exists or null if not */ public JInternalFrame getParentInternalFrame() { return GUIHelper.getParentInternalFrame(this); }
jintframe = getParentInternalFrame(cont); if (jintframe != null) { jintframe.doDefaultCloseAction();