📄 about.java
字号:
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
class About extends Frame implements ActionListener{
About(){
setTitle("关于五子棋");
setVisible(true);
setLayout(null);
setBackground(Color.pink);
setSize(397, 321);
JPanel p1=new JPanel();
JLabel l1=new JLabel(new ImageIcon("wuziqi.jpg"));
JLabel l2=new JLabel(" Gobang");
JLabel l3=new JLabel("===================================================");
JLabel l4=new JLabel(" ●●●●● ◎◎◎◎◎");
JLabel l5=new JLabel("57.711.47 汉化版");
JLabel l6=new JLabel(" 程序代码由 king & zero 编写");
JLabel l7=new JLabel(" 版权所有");
JLabel l8=new JLabel("===================================================");
add(l1);
add(l2);
add(l3);
add(l4);
add(l5);
add(p1);
add(l6);
add(l7);
add(l8);
p1.setBounds(0, 10, 397, 70);
l2.setFont(new Font("SansSerif",Font.BOLD+Font.ITALIC,33));
l1.setBounds(0, 10, 69, 70);
l2.setBounds(71, 10, 156, 70);
l3.setBounds(0, 81, 397, 11);
l4.setBounds(228, 10, 170, 70);
l5.setBounds(257, 290, 111, 11);
l6.setBounds(0, 99, 397, 77);
l7.setBounds(0, 153, 397, 77);
l8.setBounds(0, 202, 397, 77);
p1.setBackground(Color.orange);
JButton b = new JButton("确定");
add(b);
b.setBounds(127, 270, 100, 26);
b.addActionListener(this);
}
public void actionPerformed(ActionEvent e){
// dispose();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -