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

📄 aboutdialog.java

📁 Kohonen网络的学习过程可描述为:对于每一个网络的输入
💻 JAVA
字号:
package fi.javasom.gui;
/**
 * About dialog for the Clusoe GUI.
 *
 *  Copyright (C) 2001  Tomi Suuronen
 *
 *  @version 1.0
 *
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 2 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program; if not, write to the Free Software
 *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
*/

import java.awt.*;
import java.awt.event.*;
import javax.swing.*;

public class AboutDialog extends JDialog
{
	/*
	 * Constructor.
	*/
	public AboutDialog(JFrame parent,Dimension screenSize)
	{
		super(parent,"About JSOM and Clusoe",true);
		setResizable(false);
		int width =350, height = 325;
		Box b = Box.createVerticalBox();
		b.add(new JLabel(" "));
		b.add(new JLabel("     JSOM and Clusoe (javasom package)"));
		b.add(new JLabel("     Versions 1.0"));
		b.add(new JLabel("     Copyright (C) 2001 Tomi Suuronen"));
		b.add(new JLabel("     tomi.suuronen@iki.fi"));
		b.add(new JLabel(" "));
		b.add(new JLabel("     This program comes with ABSOLUTELY NO WARRANTY."));
		b.add(new JLabel("     This is free software, and you are welcome to"));
		b.add(new JLabel("     redistribute it under certain conditions. See"));
		b.add(new JLabel("     the GNU General Public License for more details."));
		b.add(new JLabel("     (gpl.txt)"));
		b.add(new JLabel(" "));
		b.add(new JLabel("     This product includes software developed by the"));
 		b.add(new JLabel("     Apache Software Foundation (Xerces, Xalan and FOP)."));
		b.add(new JLabel("     (asl.txt and http://www.apache.org/)"));
		b.add(Box.createGlue());
		getContentPane().add(b,"Center");

		JPanel buttonPanel = new JPanel();
		JButton closeButton = new JButton("Close");
		buttonPanel.add(closeButton);
		getContentPane().add(buttonPanel,"South");

		closeButton.addActionListener(new ActionListener()
		{
			public void actionPerformed(ActionEvent ae)
			{
				setVisible(false);
			}
		});
		setSize(width,height);
		setLocation((screenSize.width-width)/2,(screenSize.height-height)/2);
	}
}

⌨️ 快捷键说明

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