alvinalexander.com | career | drupal | java | mac | mysql | perl | scala | uml | unix  

What this is

This file is included in the DevDaily.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Other links

The source code

/*
** Copyright (c) 1998-2000 by Timothy Gerard Endres
** <mailto:time@trustice.com>  
** 
** This program is free software.
** 
** You may redistribute it and/or modify it under the terms of the GNU
** General Public License as published by the Free Software Foundation.
** Version 2 of the license should be included with this distribution in
** the file LICENSE, as well as License.html. If the license is not
** included	with this distribution, you may find a copy at the FSF web
** site at 'www.gnu.org' or 'www.fsf.org', or you may write to the
** Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139 USA.
**
** THIS SOFTWARE IS PROVIDED AS-IS WITHOUT WARRANTY OF ANY KIND,
** NOT EVEN THE IMPLIED WARRANTY OF MERCHANTABILITY. THE AUTHOR
** OF THIS SOFTWARE, ASSUMES _NO_ RESPONSIBILITY FOR ANY
** CONSEQUENCE RESULTING FROM THE USE, MODIFICATION, OR
** REDISTRIBUTION OF THIS SOFTWARE. 
** 
*/

package com.ice.sqlclient;

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

import com.ice.util.AWTUtilities;


public class
AboutPanel extends JPanel
	{
	private static final String		releaseStr = "2.1, January 27, 2000";

	private static final String		aboutText =
		"SQLClient is free software, which is licensed to you under the\n" +
		"GNU General Public License, version 2. Please see the file\n" +
		"LICENSE for more details, or visit 'www.gnu.org'.\n" +
		"\n" +
		"This software is provided AS-IS, with ABSOLUTELY NO WARRANTY.\n" +
		"\n" +
		"YOU ASSUME ALL RESPONSIBILITY FOR ANY AND ALL CONSEQUENCES\n" +
		"THAT MAY RESULT FROM THE USE OF THIS SOFTWARE!" +
		"\n" +
		"\n" +
		"Written by Tim Endres  " +
		"<mailto:time@trustice.com>  " +
		"<http://www.trustice.com/>";


	private JTextArea		aboutTextArea;


	public
	AboutPanel()
		{
		this.setDoubleBuffered( true );
		this.establishContents();
		}

	private void
	establishContents()
		{
		this.setLayout( new GridBagLayout() );

		JLabel lbl;
		int row = 0;

		lbl = new JLabel( "SCLClient - A Simple Java SQL Client" );
		lbl.setHorizontalAlignment( JLabel.CENTER );
		lbl.setForeground( Color.black );
		AWTUtilities.constrain(
			this, lbl,
			GridBagConstraints.HORIZONTAL,
			GridBagConstraints.CENTER,
			0, row++, 1, 1, 1.0, 0.0,
			new Insets( 5, 1, 1, 1 ) );

		lbl = new JLabel( "Release " +  AboutPanel.releaseStr );
		lbl.setHorizontalAlignment( JLabel.CENTER );
		lbl.setForeground( Color.black );
		AWTUtilities.constrain(
			this, lbl,
			GridBagConstraints.HORIZONTAL,
			GridBagConstraints.CENTER,
			0, row++, 1, 1, 1.0, 0.0,
			new Insets( 2, 1, 1, 1 ) );

		lbl = new JLabel( "Copyright (c) 1998-2000 by Timothy Gerard Endres" );
		lbl.setHorizontalAlignment( JLabel.CENTER );
		lbl.setForeground( Color.black );
		AWTUtilities.constrain(
			this, lbl,
			GridBagConstraints.HORIZONTAL,
			GridBagConstraints.CENTER,
			0, row++, 1, 1, 1.0, 0.0,
			new Insets( 2, 1, 5, 1 ) );

		this.aboutTextArea = new JTextArea();
		this.aboutTextArea.setText( AboutPanel.aboutText );
		this.aboutTextArea.setMargin( new Insets( 5, 5, 5, 5 ) );

		JScrollPane scroller = new JScrollPane();
		scroller.getViewport().add( this.aboutTextArea );
		AWTUtilities.constrain(
			this, scroller,
			GridBagConstraints.BOTH,
			GridBagConstraints.CENTER,
			0, row++, 1, 1, 1.0, 1.0 );
		}

	}


... this post is sponsored by my books ...

#1 New Release!

FP Best Seller

 

new blog posts

 

Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.

A percentage of advertising revenue from
pages under the /java/jwarehouse URI on this website is
paid back to open source projects.