--- projects/cms/source/conient/uk/org/iscream/cms/conient/Conient.java 2001/02/21 23:45:16 1.22 +++ projects/cms/source/conient/uk/org/iscream/cms/conient/Conient.java 2001/02/26 18:40:25 1.23 @@ -14,7 +14,7 @@ import java.awt.event.*; * and its own display. * * @author $Author: ajm $ - * @version $Id: Conient.java,v 1.22 2001/02/21 23:45:16 ajm Exp $ + * @version $Id: Conient.java,v 1.23 2001/02/26 18:40:25 ajm Exp $ */ public class Conient extends JFrame { @@ -23,7 +23,7 @@ public class Conient extends JFrame { /** * The current CVS revision of this class */ - public final String REVISION = "$Revision: 1.22 $"; + public final String REVISION = "$Revision: 1.23 $"; /** * The initial width of the window @@ -74,13 +74,25 @@ public class Conient extends JFrame { // the main frame (passed the two panels) Conient client = new Conient(data, control); + conientFrame = (Frame) client; Conient.addMessage("Conient {an i-scream Client} © 2001 University of Kent & Project i-scream"); Conient.addMessage("Conient ready."); } - + /** + * A static accessor, allowing components of the system + * to get hold of the root frame of the system. + * + * see conientFrame attribute for details. + * + * @return the root Conient frame + */ + public static Frame getFrame() { + return conientFrame; + } + //---CONSTRUCTORS--- /** @@ -225,6 +237,13 @@ public class Conient extends JFrame { { _messages.setLineWrap(true); } + + /** + * Holds a reference to the root frame for Conient + * This is only used by dialogs (specifically the configurationn + * dialog) so that it can be modal, please use the accessor. + */ + private static Frame conientFrame; //---INNER CLASSES----