home *** CD-ROM | disk | FTP | other *** search
/ BUG 15 / BUGCD1998_06.ISO / aplic / jbuilder / jsamples.z / framenoschemaApplication1.java < prev    next >
Text File  |  1997-07-15  |  611b  |  24 lines

  1. package borland.samples.tutorial.dataset.framenoschema;
  2.  
  3. public class framenoschemaApplication1 {
  4.   boolean packFrame = false;
  5.  
  6.   //Construct the application
  7.   public framenoschemaApplication1() {
  8.     framenoschemaFrame1 frame = new framenoschemaFrame1();
  9.     //Pack frames that have useful preferred size info, e.g. from their layout
  10.     //Validate frames that have preset sizes
  11.     if (packFrame)
  12.       frame.pack();
  13.     else
  14.       frame.validate();
  15.     frame.setVisible(true);
  16.   }
  17.  
  18.   //Main method
  19.   static public void main(String[] args) {
  20.     new framenoschemaApplication1();
  21.   }
  22. }
  23.  
  24.