📄 splashscreen.java
字号:
/**
* Copyright (c) 1996-2004 Borland Software Corporation. All Rights Reserved.
*
* This SOURCE CODE FILE, which has been provided by Borland Software as part
* of a Borland Software product for use ONLY by licensed users of the product,
* includes CONFIDENTIAL and PROPRIETARY information of Borland Software.
*
* USE OF THIS SOFTWARE IS GOVERNED BY THE TERMS AND CONDITIONS
* OF THE LICENSE STATEMENT AND LIMITED WARRANTY FURNISHED WITH
* THE PRODUCT.
*
* IN PARTICULAR, YOU WILL INDEMNIFY AND HOLD BORLAND SOFTWARE, ITS
* RELATED COMPANIES AND ITS SUPPLIERS, HARMLESS FROM AND AGAINST ANY
* CLAIMS OR LIABILITIES ARISING OUT OF THE USE, REPRODUCTION, OR
* DISTRIBUTION OF YOUR PROGRAMS, INCLUDING ANY CLAIMS OR LIABILITIES
* ARISING OUT OF OR RESULTING FROM THE USE, MODIFICATION, OR
* DISTRIBUTION OF PROGRAMS OR FILES CREATED FROM, BASED ON, AND/OR
* DERIVED FROM THIS SOURCE CODE FILE.
*/
//------------------------------------------------------------------------------
// Copyright (c) 1996-2004 Borland Software Corporation. All Rights Reserved.
//------------------------------------------------------------------------------
package com.borland.samples.orderentry;
import java.awt.*;
import java.awt.event.*;
import java.util.*;
import javax.swing.*;
/**
* SplashScreen is the splash screen used at program start up while the
* application is loading, and the database connection being established.
* In the constructor for the Application class of the project (in this case
* CliffhangerApplication), show this frame before instantiating any other
* class. Once the main form of the application is shown, hide and dispose
* the splash screen.
*/
public class SplashScreen extends Window {
JLabel jLabel1 = new JLabel();
public SplashScreen() {
super(new Frame());
try {
jbInit();
}
catch (Exception e) {
e.printStackTrace();
}
}
/**
* Method generated and maintained by JBuilder designer to initialize control
* properties.
*
* @throws Exception exception
*/
private void jbInit() throws Exception{
this.setSize(new Dimension(408, 329));
this.setVisible(false);
jLabel1.setIcon(new ImageIcon(this.getClass().getResource("images/logo.gif")));
this.add(jLabel1, BorderLayout.CENTER);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -