home *** CD-ROM | disk | FTP | other *** search
/ Java 1.2 How-To / JavaHowTo.iso / 3rdParty / jbuilder / TRIAL / JBUILDER / JREFRNCE.Z / SplashFrame.java < prev    next >
Encoding:
Java Source  |  1998-05-08  |  3.0 KB  |  76 lines

  1. /*
  2.  * Copyright (c) 1997-1998 Borland International, Inc. All Rights Reserved.
  3.  * 
  4.  * This SOURCE CODE FILE, which has been provided by Borland as part
  5.  * of a Borland product for use ONLY by licensed users of the product,
  6.  * includes CONFIDENTIAL and PROPRIETARY information of Borland.  
  7.  *
  8.  * USE OF THIS SOFTWARE IS GOVERNED BY THE TERMS AND CONDITIONS 
  9.  * OF THE LICENSE STATEMENT AND LIMITED WARRANTY FURNISHED WITH
  10.  * THE PRODUCT.
  11.  *
  12.  * IN PARTICULAR, YOU WILL INDEMNIFY AND HOLD BORLAND, ITS RELATED
  13.  * COMPANIES AND ITS SUPPLIERS, HARMLESS FROM AND AGAINST ANY CLAIMS
  14.  * OR LIABILITIES ARISING OUT OF THE USE, REPRODUCTION, OR DISTRIBUTION
  15.  * OF YOUR PROGRAMS, INCLUDING ANY CLAIMS OR LIABILITIES ARISING OUT OF
  16.  * OR RESULTING FROM THE USE, MODIFICATION, OR DISTRIBUTION OF PROGRAMS
  17.  * OR FILES CREATED FROM, BASED ON, AND/OR DERIVED FROM THIS SOURCE
  18.  * CODE FILE.
  19.  */
  20.  
  21. //Title:        Cliffhanger Adventure Gear
  22. //Version:      
  23. //Copyright:    Copyright (c) 1997 Borland International, Inc.
  24. //Author:       Application Methods, Inc.
  25. //Description:  Cliffhanger Adventure Gear order entry system
  26.  
  27. package borland.reference.cliffhanger;
  28.  
  29. import java.awt.*;
  30. import java.awt.event.*;
  31. import borland.jbcl.layout.*;
  32. import borland.jbcl.control.*;
  33. import java.util.*;
  34.  
  35. /**
  36.  * SplashFrame is the splash screen used at program start up while the
  37.  * application is loading, and the database connection being established.
  38.  * In the constructor for the Application class of the project (in this case
  39.  * CliffhangerApplication), show this frame before instantiating any other
  40.  * class. Once the main form of the application is shown, hide and dispose
  41.  * the splash screen.
  42.  */
  43. public class SplashFrame extends DecoratedFrame {
  44.   ImageControl imageControl1 = new ImageControl();
  45.   GridBagLayout gridBagLayout1 = new GridBagLayout();
  46.   LabelControl labelControl1 = new LabelControl();
  47.   ResourceBundle res = Res.getBundle("borland.reference.cliffhanger.Res");
  48.  
  49.   public SplashFrame() {
  50.     try {
  51.       jbInit();
  52.     }
  53.     catch (Exception e) {
  54.       e.printStackTrace();
  55.     }
  56.   }
  57.  
  58.   /**
  59.    * Method generated and maintained by JBuilder designer to initialize
  60.    * control properties.
  61.    */
  62.   private void jbInit() throws Exception{
  63.     this.setSize(new Dimension(200, 250));
  64.     this.setVisible(false);
  65.     imageControl1.setAlignment(borland.jbcl.util.Alignment.CENTER | borland.jbcl.util.Alignment.MIDDLE);
  66.     imageControl1.setImageName(".\\graphics\\logo.gif");
  67.     labelControl1.setAlignment(Label.CENTER);
  68.     labelControl1.setText(res.getString("SF_Loading_"));
  69.     this.setLayout(gridBagLayout1);
  70.     this.add(imageControl1, new GridBagConstraints2(0, 0, 1, 1, 1.0, 1.0
  71.             ,GridBagConstraints.NORTH, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0));
  72.     this.add(labelControl1, new GridBagConstraints2(0, 1, 1, 1, 0.0, 0.0
  73.             ,GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL, new Insets(0, 0, 0, 0), 0, 0));
  74.   }
  75. }
  76.