📄 aboutdialog.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).*//* This file is a part of the ARMiner project. (P)1999-2000 by ARMiner Client Team: Abdelmajid Karatihy Xiaoyong Kuang Lung-Tsung Li*/import java.awt.*;import java.awt.event.*;import java.io.*;import javax.swing.*;/* Maintenance log started on November 15th, 2000 by Laurentiu Cristofor Nov. 15th, 2000 - made some style changes Nov. 16th, 2000 - changed dialog text*/ class AboutDialog extends CenteredDialog { private JPanel TheTopPanel; private JPanel TheCenterPanel; private JPanel TheBottomPanel; private JButton TheCloseButton; private TextArea TheTextArea; JFrame parent; public AboutDialog (JFrame parent) { this.parent = parent; CreateAboutDialog (); setLocation(getDialogCenteredLoc((JFrame)parent)); } public void CreateAboutDialog () { setModal(true); setTitle("About ARMiner..."); setSize(350,350); setResizable(false); addWindowListener (new java.awt.event.WindowAdapter () { public void windowClosing (java.awt.event.WindowEvent evt) { closeDialog (evt); } }); getContentPane().setLayout(new BorderLayout()); TheTopPanel = new JPanel(); TheTopPanel.add(new JLabel("ARMiner client application version 1.0b:")); getContentPane().add(TheTopPanel, "North"); TheCenterPanel = new JPanel(); TheTextArea = new TextArea("The ARMiner client was written by:\n\n" + "Abdelmajid Karatihy\n" + "Xiaoyong Kuang\n" + "Long-Tsong Li\n\n" + "The ARMiner server was written by:\n\n" + "Dana Cristofor\n" + "Laurentiu Cristofor\n\n" + "ARMiner (C) 2000-2001 UMass/Boston Computer Science Department\n" + "Portions (C) 1998, 1999 Sun Microsystems, Inc.\n\n" + "This software is distributed under the terms " + "of the GNU General Public License", 15, 45, TextArea.SCROLLBARS_VERTICAL_ONLY); TheTextArea.setEditable(false); TheCenterPanel.add(TheTextArea); getContentPane().add(TheCenterPanel, "Center"); TheBottomPanel = new JPanel(); TheCloseButton = new JButton("Close"); TheCloseButton.setMnemonic(KeyEvent.VK_C); TheBottomPanel.add(TheCloseButton); getContentPane().add(TheBottomPanel, "South"); TheCloseButton.addActionListener(new ActionListener(){ public void actionPerformed(ActionEvent e) { hide(); dispose(); parent.repaint(); } }); } /** Closes the dialog */ private void closeDialog(java.awt.event.WindowEvent evt) { setVisible (false); dispose (); parent.repaint(); } public static void main(String args[]) { AboutDialog ad = new AboutDialog(new JFrame()); ad.show(); } }
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -