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

📄 about_actionlistener.java

📁 字符识别程序
💻 JAVA
字号:
import java.awt.BorderLayout;
import java.awt.Container;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

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

	public class About_actionListener implements ActionListener {
		/**
		 * <p>Title: 字符识别程序</p>
		 *
		 * <p>Description: </p>
		 *
		 * <p>Copyright: Copyright (c) 2006</p>
		 *
		 * <p>Company: </p>
		 *
		 * @author 曾伟强
		 * @version 1.0
		 */
		private JFrame frame = null;
		public About_actionListener(JFrame frame)
		{
			this.frame = frame;
		}
		public void actionPerformed(ActionEvent e){
		
		  final JDialog dialog = new JDialog(frame,"字符识别程序",true);
		  JPanel jp = new JPanel();
		
		  Container dialogPane = dialog.getContentPane();
		  dialogPane.add(new JLabel("04医学应用2班",JLabel.CENTER),BorderLayout.NORTH);
		  dialogPane.add(new JLabel("郭镇波 陈仲锦 幸柯 叶福升 曾伟强",JLabel.CENTER),BorderLayout.CENTER);
		  JButton jb = new JButton("确定");
		  jb.setSize(30,20);
		  jb.addActionListener(new ActionListener()
		  {
		  	public void actionPerformed(ActionEvent exxx)
		  	{
		  		dialog.dispose();
		  	}
		  });
		  jp.add(jb,BorderLayout.CENTER);
		  dialogPane.add(jp,BorderLayout.SOUTH);
		  dialog.setBounds(370,280,250,120);
		  dialog.setResizable(false);
		  dialog.setVisible(true);
		  }
	}

⌨️ 快捷键说明

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