FileDocCategorySizeDatePackage
Application1.javaAPI DocExample1679Sat Sep 12 03:01:00 BST 1998borland.samples.jbcl.cardlayout

Application1

public class Application1 extends Object

Fields Summary
Constructors Summary
public Application1()

    Frame1 frame = new Frame1();
    frame.pack();
    //Center the window
    Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
    Dimension frameSize = frame.getPreferredSize();
    if (frameSize.height > screenSize.height)
      frameSize.height = screenSize.height;
    if (frameSize.width > screenSize.width)
      frameSize.width = screenSize.width;
    frame.setLocation((screenSize.width - frameSize.width) / 2, (screenSize.height - frameSize.height) / 2);
    frame.setVisible(true);
  
Methods Summary
public static voidmain(java.lang.String[] args)

    new Application1();