FileDocCategorySizeDatePackage
Application1.javaAPI DocExample679Fri Nov 09 13:10:32 GMT 2001Lecture8.PolyMorphism

Application1

public class Application1 extends Object

Fields Summary
boolean
packFrame
Constructors Summary
public Application1()


  //Construct the application
    
    Frame1 frame = new Frame1();
    //Validate frames that have preset sizes
    //Pack frames that have useful preferred size info, e.g. from their layout
    if (packFrame)
      frame.pack();
    else
      frame.validate();
    frame.setVisible(true);
  
Methods Summary
public static voidmain(java.lang.String[] args)

    try  {
      UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
    }
    catch(Exception e) {
    }
    new Application1();