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

📄 message.java

📁 数据挖掘的工具代码(包含fp-tree,appriory
💻 JAVA
字号:
/*ARMiner - Association Rules MinerCopyright (C) 2000  UMass/Boston - Computer Science DepartmentThis program is free software; you can redistribute it and/or modifyit under the terms of the GNU General Public License as published bythe Free Software Foundation; either version 2 of the License, or (atyour option) any later version.This program is distributed in the hope that it will be useful, butWITHOUT ANY WARRANTY; without even the implied warranty ofMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNUGeneral Public License for more details.You should have received a copy of the GNU General Public Licensealong with this program; if not, write to the Free SoftwareFoundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307USAThe ARMiner Server was written by Dana Cristofor and LaurentiuCristofor.The ARMiner Client was written by Abdelmajid Karatihy, Xiaoyong Kuang,and Lung-Tsung Li.The ARMiner package is currently maintained by Laurentiu Cristofor(laur@cs.umb.edu).*/import java.awt.event.*;import java.util.*;import java.awt.*;import javax.swing.*;import java.awt.event.*;/*  Maintenance log started on November 17th, 2000 by Laurentiu Cristofor  Nov. 17th, 2000   - made some style changes*/ public class Message extends JDialog{  public Message(String message, JDialog parent)  {    super();    this.parent = parent;    this.parent.setModal(false);    setModal(true);		    // This line prevents the "Swing: checked access to system event queue"    // message seen in some browsers.    getRootPane().putClientProperty("defeatSystemEventQueueCheck", 				    Boolean.TRUE);		    getContentPane().setLayout(new BorderLayout());    //getContentPane().setBackground(java.awt.Color.white);    getContentPane().setSize(200, 150);		    JLabel lblMessage = new JLabel(message, JLabel.CENTER);    getContentPane().add(lblMessage, BorderLayout.CENTER);		    btnOK.setText("OK");    JPanel okPanel = new JPanel();    okPanel.add(btnOK);    getContentPane().add(okPanel, BorderLayout.SOUTH);		    SymAction lSymAction = new SymAction();    btnOK.addActionListener(lSymAction);  }		  javax.swing.JButton btnOK = new javax.swing.JButton();  JDialog parent;	  class SymAction implements java.awt.event.ActionListener  {    public void actionPerformed(java.awt.event.ActionEvent event)    {      Object object = event.getSource();      if (object == btnOK)	btnOK_actionPerformed(event);				    }  }	  public void btnOK_actionPerformed(java.awt.event.ActionEvent event)  {    this.hide();    parent.setModal(true);    this.dispose();  }	  public static void main(String args[])  {    //Message ms = new Message("this is a long test");    //ms.setSize(350,150);    //ms.show();  }}		

⌨️ 快捷键说明

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