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

FamiliesApplication

public class FamiliesApplication extends Object
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)

Fields Summary
HumanInterface.FamilyFrame
familyFrm
DataManagement.DMControl
dmControl
boolean
packFrame
Constructors Summary
public FamiliesApplication()

note
Constructor for the main class. Creates, positions and displays the main window of the application - the FamilyFrame class


                    
    
    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);
  
Methods Summary
public static voidmain(java.lang.String[] args)

note
The main method.

    new FamiliesApplication();