⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 about.java

📁 simple Ebook management software!
💻 JAVA
字号:
/**
 * 
 */

/**
 * @author Linden
 * @date 下午05:26:452007-10-24
 */
import javax.swing.*;
import java.util.*;
import java.awt.*;
import java.awt.event.*;

class About extends JFrame implements ActionListener{
  JButton btnConfirm;
  Font f1;
  JFrame fp;
   About(){
	setSize(450,350);
	setTitle("关于图书增删改查系统");
	Dimension screen=Toolkit.getDefaultToolkit().getScreenSize();//显示的窗口在屏幕的中央
	setLocation((screen.width-450)/2,(screen.height-350)/2);
	this.setResizable(false);//不让用户改变窗口的大小
	Container contentPane=this.getContentPane();
	contentPane.setLayout(null);
		
	JLabel lbPic=new JLabel(new ImageIcon("image\\money.png"));
	JLabel lbTitle=new JLabel("图书增删改查系统");
	f1=new Font("宋体",Font.BOLD,21);
	lbTitle.setFont(f1);
	JLabel lbEdition=new JLabel("版本1.0");
	JLabel lbPerson=new JLabel("研发人员:王昆");
	JLabel lbWarn=new JLabel("本代码仅供研究之用,欢迎指正!");
	btnConfirm=new JButton("确定");		
		
    lbPic.setBounds(25,25,142,108);
    lbTitle.setBounds(200,25,200,25);
    lbEdition.setBounds(200,75,200,40);
    lbPerson.setBounds(200,125,200,40);
    lbWarn.setBounds(200,175,200,40);
    btnConfirm.setBounds(200,250,100,24);
	contentPane.add(lbPic);contentPane.add(lbTitle);
	contentPane.add(lbEdition);
	contentPane.add(lbPerson);
	contentPane.add(lbWarn);
	contentPane.add(btnConfirm);
	btnConfirm.addActionListener(this);
    setVisible(true);
  }
  public void actionPerformed(ActionEvent e){
	if(e.getSource()==btnConfirm){
	  dispose();
	}
  }	
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -