FileDocCategorySizeDatePackage
FamiliesApplication.javaAPI DocExample1643Tue Dec 08 01:21:00 GMT 1998Application

FamiliesApplication.java

// Copyright 1997 Object UK Ltd.
package Application;
// Author Andrew Carmichael
// Updated Tim Shelley
//
// Date
// Version 0.2
// Email: objectuk@objectuk.co.uk
// Web: http://www.objectuk.co.uk

// Generated by Together/J

import java.awt.*;
import HumanInterface.*;

/**@note This is the starting class, and should be the class called when 
you want to run the application.
@version 0.2
@author Tim Shelley
@url (http://www.oisoft.com)
*/
public class FamiliesApplication { 
   
/**@shapeType AssociationLink*/
 HumanInterface.FamilyFrame familyFrm;
 DataManagement.DMControl dmControl;

 boolean packFrame = false;

/**@note Constructor for the main class.  Creates, positions and 
displays the main window of the application - the FamilyFrame 
class*/
  public FamiliesApplication() {
    dmControl = new DataManagement.DMControl();
    familyFrm = new FamilyFrame(dmControl);
//    familyFrm.setDMControl(dmControl);
    if (packFrame)
      familyFrm.pack();
    else
      familyFrm.validate();
    //Center the window
    Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
    Dimension frameSize = familyFrm.getSize();
    if (frameSize.height > screenSize.height)
      frameSize.height = screenSize.height;
    if (frameSize.width > screenSize.width)
      frameSize.width = screenSize.width;
    familyFrm.setLocation((screenSize.width - frameSize.width) / 2, (screenSize.height - frameSize.height) / 2);
    familyFrm.setVisible(true);
  }

/**@note The main method.*/
  static public void main(String[] args) {
    new FamiliesApplication();
  }
}