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

📄 help.java

📁 酒店管理系统·可用于一般旅社的营业操作。方便你的酒店管理
💻 JAVA
字号:
/* * To change this template, choose Tools | Templates * and open the template in the editor. */package com.redingsoft.about;import com.redingsoft.locationutil.LocationUtil;import java.awt.Color;import java.awt.Dimension;import java.awt.event.ActionEvent;import java.awt.event.ActionListener;import javax.swing.*;/** * * @author Administrator */public class help extends JDialog implements ActionListener{  //声明一个标签    JLabel jl1;    //一个滚动面板    JPanel jp1;    //一个按钮    JButton bt1;    String helptext;   public help (){   //实例化组建       jl1=new JLabel();       bt1=new JButton("关闭");       jp1=new  JPanel();       helptext="<html><body>" +               "1.打开软件,系统设置里面验证服务器连接情况。<br>" +               "2.连接成功,首先进行房间管理,设置房间类型<br>" +               "3.进行房间详细信息设置,<br>" +               "4.客户设置;首先进行客户类型设置,<br>" +               "5.以上设置完毕。可以进行开单。<br>"               +"</body></html>";       jl1.setText(helptext);       jp1.add(jl1);       jp1.add(bt1);       //设置组件外观       jp1.setPreferredSize(new Dimension(300,180));       jp1.setBackground(Color.cyan);       jp1.setBorder(BorderFactory.createMatteBorder(1, 1,1, 1, Color.LIGHT_GRAY));       bt1.setContentAreaFilled(false);       bt1.addActionListener(this);       //添加个组件       this.add(jp1);       this.setSize(300,180 );       this.setDefaultCloseOperation(help.DISPOSE_ON_CLOSE);       this.setTitle("帮助");       LocationUtil.setLocation(this);     //  this.setVisible(true);   }   /*********************************************   public static void main(String []aa){   new help();   }****************************************/    public void actionPerformed(ActionEvent e) {       // throw new UnsupportedOperationException("Not supported yet.");        if(e.getActionCommand().equals("关闭")){        this.dispose();        }    }}

⌨️ 快捷键说明

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