📄 about.java
字号:
//import the packages for using the classes in them into the program
package lib;
import javax.swing.*;
import java.awt.*;
/**
*A public class
*/
public class About extends JPanel {
//constructor of about
public About() {
//for creating the image icon
ImageIcon icon = new ImageIcon(ClassLoader.getSystemResource("images/java.jpg"));
//for creating the label and setting the image icon
JLabel label1 = new JLabel(icon);
//for adding the label to the panel
this.add(label1);
//for creating the label and setting the text
JLabel label2 = new JLabel("<html><li>图书管理系统 v1.0"
+ "</li><li><p>联系方式:xuyi0076@hotmail.com</li></html>");
//for setting the font to the label
label2.setFont(new Font("Default", Font.PLAIN, 13));
//for adding the lable to the panel
this.add(label2);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -