help.java

来自「JAVA开发的酒店管理系统」· Java 代码 · 共 42 行

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