📄 aboutpanel.java
字号:
/*
* @author Reghu
* @version 1.0
*
* Development Environment : Oracle9i JDeveloper
* Name of the Application : AboutPanel.java
* Creation/Modification History :
*
* Reghu 29-March-2003 Created
*
*/
package oracle.otnsamples.vsm.client;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.Font;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.Insets;
import javax.swing.BorderFactory;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.SwingConstants;
import javax.swing.border.Border;
import javax.swing.border.EtchedBorder;
/**
* This java file displays the details of the application while selecting the
*
* @author Reghu
* @version 1.0
*/
public class AboutPanel extends JPanel {
private Border border = BorderFactory.createEtchedBorder();
private GridBagLayout gridBagLayout1 = new GridBagLayout();
private JLabel content = new JLabel();
private JLabel header = new JLabel();
/**
* Constructor, initializes and sets up listeners for the GUI components of
* the application
*/
public AboutPanel() {
try {
jbInit();
} catch(Exception e) {
e.printStackTrace();
}
}
/**
* Initialize all the GUI components and the layout
*
* @exception Exception
*/
private void jbInit() throws Exception {
this.setLayout(gridBagLayout1);
this.setBorder(BorderFactory.createEtchedBorder(EtchedBorder.RAISED));
this.setSize(new Dimension(347, 246));
this.setBackground(new Color(179, 177, 142));
header.setText("Virtual Shopping Mall - J2EE 1.3 application");
header.setHorizontalAlignment(SwingConstants.CENTER);
header.setFont(new Font("Tahoma", 1, 13));
header.setForeground(new Color(211, 198, 200));
header.setBackground(new Color(75, 152, 212));
content.setText("VSM 1.3 is a complete J2EE 1.3 application");
content.setFont(new Font("Dialog", 1, 11));
content.setHorizontalAlignment(SwingConstants.LEFT);
content.setBackground(new Color(179, 177, 142));
content.setDoubleBuffered(true);
this.add(
content,
new GridBagConstraints(
0, 1, 1, 1, 0.0, 0.0,
GridBagConstraints.WEST,
GridBagConstraints.NONE,
new Insets(10, 33, 34, 0), 252, 155));
this.add(
header,
new GridBagConstraints(
0, 0, 2, 1, 0.0, 0.0,
GridBagConstraints.WEST,
GridBagConstraints.NONE,
new Insets(3, 3, 0, 5), 60, 3));
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -