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

📄 aboutjdialog.java~4~

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

import java.awt.BorderLayout;
import java.awt.Canvas;
import java.awt.Image;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;

import javax.swing.BorderFactory;
import javax.swing.ImageIcon;

import javax.swing.JButton;
import javax.swing.JEditorPane;

import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JScrollBar;
import javax.swing.JScrollPane;
import javax.swing.JSpinner;
import javax.swing.JTextArea;
import javax.swing.JTextField;
import javax.swing.SpinnerListModel;
import javax.swing.border.TitledBorder;
import java.awt.Rectangle;

/**
 * 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.
 */
/**
 * 关于作者
 *
 * @author 徐寒静
 *
 */
public class AboutJDialog extends javax.swing.JDialog {
    public AboutJDialog() {
        try {
            jbInit();
        } catch (Exception ex) {
            ex.printStackTrace();
        }
    }

    {
		// Register as a resource user - SWTResourceManager will
		// handle the obtaining and disposing of resources

	}

	private JButton butok;
	private JFrame a;
	private TitledBorder titledBorder_IL;
	private JTextArea jTextArea1;
	private JLabel imgJlabel;
    JLabel jLabel1 = new JLabel();

    /**
	 * Auto-generated main method to display this JDialog
	 */

	public AboutJDialog(JFrame frame) {

		super(frame);
		a = frame;
		this.setLayout(null);
		this.setResizable(false);
		this.setTitle("\u5173\u4e8e\u65e0\u540d\u591a\u529f\u80fd\u8ba1\u7b97\u5668");
		initGUI();

		this.setVisible(true);
	}

	private void initGUI() {
		try {

				butok = new JButton();
				getContentPane().add(butok, BorderLayout.CENTER);
				butok.setText("\u786e\u5b9a");
				butok.setBounds(138, 226, 79, 27);
				butok.addActionListener(new ActionListener(){

					public void actionPerformed(ActionEvent arg0) {

						a.setEnabled(true);
						dispose();
					}

				});

			{
				jTextArea1 = new JTextArea(5,10);
				getContentPane().add(jTextArea1);
				jTextArea1.setText("\u65e0\u540d\u5de5\u4f5c\u5ba4\u5236\u4f5c\n\u7248\u672c\u53f7\uff1av1.0\n\u7248\u6743\u6240\u6709\uff1a\u65e0\u540d\u5de5\u4f5c\u5ba4\u4fdd\u7559\u6240\u6709\u7248\u6743\n\n\u9664\u4e86\u672c\u62c5\u4fdd\u63d0\u4f9b\u7684\u7279\u5b9a\u5408\u6cd5\u6743\u5229\u5916\uff0c\u6839\u636e\u5404\u5dde\n\u7684\u4e0d\u540c\u6cd5\u5f8b\uff0c\u60a8\u8fd8\u53ef\u80fd\u4eab\u6709\u5176\u4ed6\u6743\u5229\u3002  \u6839\u636e\n\u5404\u4e2a\u56fd\u5bb6\u6216\u5730\u533a\u7684\u4e0d\u540c\u6cd5\u5f8b\uff0c\u60a8\u8fd8\u53ef\u80fd\u4eab\u6709\u5176\n\u4ed6\u6743\u5229\u3002\n\n\n");
				jTextArea1.setBounds(121, 0, 273, 220);
				jTextArea1.setBorder(getTitledBorder_IL());
				jTextArea1.setBackground(new java.awt.Color(0,128,255));
				jTextArea1.setForeground(new java.awt.Color(0,0,160));
				jTextArea1.setEnabled(false);
				jTextArea1.setDisabledTextColor(new java.awt.Color(0,64,128));
			}
			{
				imgJlabel=new JLabel();
				getContentPane().add(imgJlabel);
				imgJlabel.setBounds(0, 0, 121, 220);

			}
			setSize(400, 300);

			this.addWindowListener(new WindowAdapter() {
				public void windowClosing(WindowEvent e) {
					a.setEnabled(true);
				}}

		);
		}catch (Exception e) {
			e.printStackTrace();
		}
	}

	private TitledBorder getTitledBorder_IL() {
		if (titledBorder_IL == null) {
			titledBorder_IL = BorderFactory.createTitledBorder("");
			titledBorder_IL.setTitle("\u8bf4\u660e");

		}
		return titledBorder_IL;
	}

    private void jbInit() throws Exception {
        jLabel1.setToolTipText("");
        jLabel1.setBounds(new Rectangle(12, 14, 103, 200));
        this.getContentPane().add(jLabel1);
    }

}

⌨️ 快捷键说明

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