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

📄 helpjdialog.java

📁 学生管理系统
💻 JAVA
字号:
package xxglxt;

import java.awt.event.*;

import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JTextArea;

/**
 * This code was edited or generated using CloudGarden's Jigloo
 * SWT/Swing GUI Builder, which is free for non-commercial
 * use. If Jigloo is being used commercially (ie, by a corporation,
 * company or business for any purpose whatever) then you
 * should purchase a license for each developer using Jigloo.
 * Please visit www.cloudgarden.com for details.
 * Use of Jigloo implies acceptance of these licensing terms.
 * A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
 * THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
 * LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
 */
public class HelpJDialog extends javax.swing.JDialog {
    public HelpJDialog() {
        try {
            jbInit();
        } catch (Exception ex) {
            ex.printStackTrace();
        }
    }

    /**
     * Auto-generated main method to display this JDialog
     */
    JFrame f = new JFrame();
    private JButton jButton1;
    private JTextArea jlab;

    public HelpJDialog(JFrame frame) {

        super(frame);
        f = frame;

        initGUI();
    }

    private void initGUI() {
        try {
            this.setLayout(null);

            this.setTitle("帮助主题");
            this.setResizable(false);
            this.addWindowListener(new WindowAdapter() {
                public void windowClosing(WindowEvent e) {
                    f.setEnabled(true);
                }
            }

            );

            {
                jButton1 = new JButton();
                jlab=new JTextArea();
                getContentPane().add(jButton1);
                jButton1.setText("OK");
                jButton1.setBounds(155, 230, 62, 23);
                jlab.setText("這麼容易還要幫助,你想什麼呢?"+'\n'+'\n'+"如有問題請找技術支持李琳"+'\n'+'\n'
                             +"如要簽名請找作者徐寒靜"+'\n'+'\n'+"口合口合口合~~~"
                             +'\n');
                jlab.setDisabledTextColor(new java.awt.Color(0, 64, 128));
                jlab.setEnabled(false);
                jlab.setBounds(50,50,250,170);
                getContentPane().add(jlab);
                jButton1.addActionListener(new ActionListener() {

                    public void actionPerformed(ActionEvent arg0) {
                        f.setEnabled(true);
                        dispose();

                    }

                });
            }
            setSize(400, 300);
            this.setVisible(true);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    private void jbInit() throws Exception {
        this.getContentPane().setLayout(null);
    }

}

⌨️ 快捷键说明

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