📄 about.java
字号:
package hotelinformationmanagesystem;
import java.awt.*;
import javax.swing.*;
import java.awt.BorderLayout;
import com.borland.jbcl.layout.XYLayout;
import com.borland.jbcl.layout.*;
import javax.swing.BorderFactory;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.Font;
/**
* <p>Title: 酒店信息管理系统</p>
*
* <p>Description: The Management Information System of Hotel</p>
*
* <p>Copyright: Copyright (c) 2007</p>
*
* <p>Company: JSP</p>
*
* @author 江世澎
* @version 1.0
*/
public class About extends JFrame {
JPanel jPShowInf = new JPanel();
XYLayout xYLayout1 = new XYLayout();
XYLayout xYLayout2 = new XYLayout();
JButton jBAffirm = new JButton();
JLabel jLShowInf1 = new JLabel();
JLabel jLShowInf2 = new JLabel();
JLabel jLShowInf3 = new JLabel();
JLabel jLShowInf4 = new JLabel();
JLabel jLShowInf5 = new JLabel();
JLabel jLShowInf6 = new JLabel();
public About() {
try {
jbInit();
} catch (Exception exception) {
exception.printStackTrace();
}
}
private void jbInit() throws Exception {
getContentPane().setLayout(xYLayout1);
jPShowInf.setLayout(xYLayout2);
jPShowInf.setBorder(BorderFactory.createEtchedBorder());
jLShowInf1.setFont(new java.awt.Font("宋体", Font.BOLD, 13));
jLShowInf2.setFont(new java.awt.Font("宋体", Font.BOLD, 12));
jLShowInf2.setText("作者:江世澎");
jLShowInf3.setFont(new java.awt.Font("宋体", Font.BOLD, 12));
jLShowInf3.setText("于二零零七年五月完成");
jLShowInf4.setFont(new java.awt.Font("宋体", Font.BOLD, 13));
jLShowInf4.setText("主要的功能是对酒店员工、客房和客人入住的管理!");
jLShowInf5.setFont(new java.awt.Font("宋体", Font.BOLD, 12));
jLShowInf5.setText("版本:1.0");
jLShowInf6.setFont(new java.awt.Font("宋体", Font.BOLD, 12));
jLShowInf6.setText("未经作者允许不得擅自使用!");
this.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
this.setResizable(false);
this.setSize(345,265);
this.getContentPane().add(jPShowInf, new XYConstraints(3, 3, 333, 192));
jPShowInf.add(jLShowInf1, new XYConstraints(9, 9, -1, -1));
jPShowInf.add(jLShowInf4, new XYConstraints(4, 38, -1, -1));
jPShowInf.add(jLShowInf6, new XYConstraints(163, 171, -1, -1));
jPShowInf.add(jLShowInf3, new XYConstraints(185, 148, -1, -1));
jPShowInf.add(jLShowInf2, new XYConstraints(209, 123, -1, -1));
jPShowInf.add(jLShowInf5, new XYConstraints(219, 98, -1, -1));
this.getContentPane().add(jBAffirm, new XYConstraints(277, 196, -1, -1));
jLShowInf1.setText("本系统是基于JAVA技术开发的酒店信息管理工具!");
jBAffirm.setText("确定");
jBAffirm.addActionListener(new About_jBAffirm_actionAdapter(this));
xYLayout1.setWidth(339);
xYLayout1.setHeight(223);
this.setTitle("关于酒店信息管理系统");
SetFormCenter windowcenter = new SetFormCenter();
windowcenter.setcenter(this);
}
public void jBAffirm_actionPerformed(ActionEvent e) {
this.setVisible(false);
}
}
class About_jBAffirm_actionAdapter implements ActionListener {
private About adaptee;
About_jBAffirm_actionAdapter(About adaptee) {
this.adaptee = adaptee;
}
public void actionPerformed(ActionEvent e) {
adaptee.jBAffirm_actionPerformed(e);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -