about.java

来自「这是用elipes平台开发的java编程实例,数据库用access .若想用el」· Java 代码 · 共 28 行

JAVA
28
字号
//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 + =
减小字号Ctrl + -
显示快捷键?