?? help.java
字號:
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.border.*;
public class help extends JFrame{
help(){
super("幫助-使用說明");
Container cp=getContentPane();
TextArea text=new TextArea("\t"+"\t"+"\t"+"主菜單:系統:退出,幫助"+"\n"+"\n"+"\t"+"\t"+"\t"+"入住管理:新客戶登記,客戶查詢,帳單查詢"+"\n"+"\n"+"\t"+"\t"+"\t"+"空房查詢:空房查詢,客戶退房,歷史記錄查詢 ");
text.append("\n"+"\n"+"\t"+"\t"+"\t"+"管理員操作:增加管理員,修改自己的密碼");
text.append("\n"+"\n"+"\t"+"\t"+"\t"+"\t"+"注銷刪除自己的帳號,退出帳號");
text.append("\n"+"\n"+"\t"+"\t"+"\t"+"本軟件對密碼進行了加密,增加了安全性");
text.append("\n"+"\n"+"\t"+"\t"+"\t"+"如有什么問題請發郵件:maxj4719@163.com");
text.setEditable(false);
text.setBackground(Color.white);
JButton jb=new JButton("確定");
JPanel jp=new JPanel();
jp.setBorder( new TitledBorder("使用說明"));
jp.setLayout(new FlowLayout());
jp.add(text);
jp.add(jb);
cp.add(jp);
setSize(500,400);
setVisible(true);
jb.addActionListener(new ActionListener(){
public void actionPerformed(ActionEvent e){
exit();
}
});
}
public void exit(){
this.dispose();
}
public static void main(String[] args){
new help();
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -