📄 about.java~2~
字号:
package chatserver;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
/**
* <p>Title: 聊天</p>
*
* <p>Description: </p>
*
* <p>Copyright: Copyright (c) 2005</p>
*
* <p>Company: 个人</p>
*
* @author Mothz
* @version 1.0
*/
public class about
extends JFrame {
BorderLayout borderLayout1 = new BorderLayout();
JPanel jPanel1 = new JPanel();
JPanel jPanel2 = new JPanel();
JLabel jLabel1 = new JLabel();
JPanel jPanel3 = new JPanel();
GridLayout gridLayout1 = new GridLayout();
JLabel jLabel2 = new JLabel();
JLabel jLabel3 = new JLabel();
JLabel jLabel4 = new JLabel();
JLabel jLabel5 = new JLabel();
JLabel jLabel6 = new JLabel();
JPanel jPanel4 = new JPanel();
JButton jButton1 = new JButton();
public about() {
try {
this.setIconImage(Toolkit.getDefaultToolkit().createImage("images/1.png"));
jbInit();
}
catch (Exception exception) {
exception.printStackTrace();
}
}
private void jbInit() throws Exception {
this.setSize(390,290);
this.setResizable(false);
this.setTitle("关于");
getContentPane().setLayout(borderLayout1);
jPanel2.setBorder(BorderFactory.createEtchedBorder());
jPanel2.setBounds(new Rectangle(23, 16, 341, 32));
jLabel1.setFont(new java.awt.Font("宋体", Font.PLAIN, 14));
jLabel1.setForeground(new Color(0, 83, 255));
jLabel1.setText("欢迎使用MothzChat服务器端");
jPanel3.setBorder(BorderFactory.createEtchedBorder());
jPanel3.setBounds(new Rectangle(23, 59, 341, 170));
jPanel3.setLayout(gridLayout1);
gridLayout1.setColumns(1);
gridLayout1.setRows(6);
jLabel2.setText("1.本服务器系统实现了多人聊天");
jLabel3.setText("2.管理员人员管理和用户管理,方便管理员管理");
jLabel4.setText("3.号码注册由服务器系统随机产生");
jLabel5.setText("4.多窗口状态管理");
jLabel6.setText("5.系统消息发送");
jPanel4.setLayout(null);
jButton1.setBounds(new Rectangle(131, 0, 75, 21));
jButton1.setBorder(null);
jButton1.setIcon(new ImageIcon("images/ok.jpg"));
jButton1.addActionListener(new about_jButton1_actionAdapter(this));
this.getContentPane().add(jPanel1, java.awt.BorderLayout.CENTER);
jPanel1.add(jPanel3);
jPanel3.add(jLabel2);
jPanel3.add(jLabel3);
jPanel3.add(jLabel4);
jPanel3.add(jLabel5);
jPanel3.add(jLabel6);
jPanel3.add(jPanel4);
jPanel4.add(jButton1);
jPanel1.add(jPanel2);
jPanel2.add(jLabel1);
jPanel1.setLayout(null);
}
public void jButton1_actionPerformed(ActionEvent e) {
this.dispose();
}
}
class about_jButton1_actionAdapter
implements ActionListener {
private about adaptee;
about_jButton1_actionAdapter(about adaptee) {
this.adaptee = adaptee;
}
public void actionPerformed(ActionEvent e) {
adaptee.jButton1_actionPerformed(e);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -