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

📄 aboutdialog.java

📁 clustering data for the different techniques of data mining
💻 JAVA
字号:
/*  AboutDialog.java   (P)2002 Dana Cristofor*//*GAClust - Clustering categorical databases using genetic algorithmsCopyright (C) 2002  Dana CristoforThis 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-1307USAGAClust was written by Dana Cristofor (dana@cs.umb.edu).*/import javax.swing.*;import javax.swing.border.*;import java.awt.*;import java.awt.event.*;/** * The GAClust About dialog * * @version 	1.0 * @author	Dana Cristofor */public class AboutDialog extends CenteredJDialog   implements ActionListener{  // Variables declaration  private JPanel CenterPanel;  private JTextArea AboutTextArea;  private JPanel SouthPanel;  private JButton CloseButton;  // End of variables declaration  /** Creates new form AboutDialog */  public AboutDialog(Frame parent, boolean modal)   {    super(parent, modal);    initComponents();  }  /** This method is called from within the constructor to   * initialize the form.   */  private void initComponents()   {    CenterPanel = new JPanel();    AboutTextArea = new JTextArea();    SouthPanel = new JPanel();    CloseButton = new JButton();            setTitle(Strings.ABOUT);    setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);    setModal(true);    setResizable(false);    addWindowListener(new WindowAdapter() {	public void windowClosing(WindowEvent evt) {	  closeDialog();	}      });            AboutTextArea.setLineWrap(true);    AboutTextArea.setEditable(false);    AboutTextArea.setText(Strings.ABOUT_TEXT);    AboutTextArea.setBackground(Color.lightGray);    AboutTextArea.setPreferredSize(new Dimension(380, 200));            CenterPanel.setBorder(new EtchedBorder(EtchedBorder.RAISED));    CenterPanel.add(AboutTextArea);            getContentPane().add(CenterPanel, BorderLayout.CENTER);            CloseButton.setText(Strings.CLOSE);    CloseButton.addActionListener(this);    CloseButton.setMnemonic(KeyEvent.VK_C);    CloseButton.setToolTipText(Strings.CLOSE_TIP);    SouthPanel.add(CloseButton);            getContentPane().add(SouthPanel, BorderLayout.SOUTH);    pack();    center();  }  public void actionPerformed(ActionEvent event)  {    if (event.getSource() == CloseButton)       closeDialog();  }  /** Closes the dialog */  private void closeDialog()   {    setVisible(false);    dispose();  }}

⌨️ 快捷键说明

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