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

📄 aboutusdialog.java

📁 培训时做的学生管理系统.基于J2SE平台开发
💻 JAVA
字号:
package cn.com.dialog;

import java.awt.GridLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JButton;
import javax.swing.JDialog;
import javax.swing.JLabel;
import javax.swing.JPanel;

public class AboutUsDialog {
	private JButton tijiao;

	private JDialog dialog;

	public JDialog CreatAbout() {
		if (dialog == null) {
			dialog = new JDialog();
			dialog.setTitle("关于我们");
			dialog.setSize(500, 300);
			dialog.setLocationRelativeTo(null);
			dialog.setVisible(true);
			return dialog;
		}
		return null;
	}

	public JPanel CreatSouth() {
		JPanel panel = new JPanel();
		panel.setLayout(new GridLayout(2,1));
		panel.add(new JLabel("",JLabel.CENTER));
		panel.add(new JLabel("",JLabel.CENTER));
		return panel;
	}

	public JButton CreatButton() {
		if (tijiao == null) {
			JButton tijiao = new JButton("提交");
			tijiao.addActionListener(new ActionListener() {
				public void actionPerformed(ActionEvent arg0) {
					dialog.dispose();
				}

			});
			return tijiao;
		}
		return null;
	}
}

⌨️ 快捷键说明

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