?? about.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 + -