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

📄 about.java

📁 实现JSP开发的BBS源码
💻 JAVA
字号:
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;

public class about extends JFrame implements ActionListener{
	private JButton okay=new JButton("OK");
	private JLabel version=new JLabel(" BSMS 版本2007.12.8.V1.0T");
	private JLabel declare1=new JLabel("此程序受版权法和国际公约的保护,参见EULA");
	private JLabel declare2=new JLabel("本程序全部代码由bbyu@IT本人编写");
	private JLabel declare3=new JLabel("作者保留一切权利!");
	private JLabel copyRight=new JLabel("BSMS 版权所有(C) 2007-2008 bbyu@IT");
	
	//构造方法
	public about(){
		setTitle("关于 BSMS v1.0T");
		setSize(300,230);
		setResizable(false);
		setLocation(400,500);
		Container c=getContentPane();
		c.setLayout(null);
		c.add(version);
		version.setBounds(60,85,180,30);
		c.add(declare1);
		declare1.setBounds(10,10,290,30);
		c.add(declare2);
		declare2.setBounds(30,35,290,30);
		c.add(declare3);
		declare3.setBounds(80,60,200,30);
		c.add(copyRight);
		copyRight.setBounds(30,110,280,30);
		c.add(okay);
		okay.setBounds(110,140,60,45);
		okay.addActionListener(this);
		show();
	}
	
	//事件监听
	public void actionPerformed(ActionEvent ae){
		if(ae.getSource()==okay){
			hide();
		}
	}
	public static void main(String args[]){
		about aboutBSMS=new about();
	}
	
}

⌨️ 快捷键说明

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