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