- Timestamp:
- 2004-01-09T14:48:06+13:00 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/gui/AboutDialog.java
r6318 r6382 2 2 *######################################################################### 3 3 * 4 * A component of the Gatherer application, part of the Greenstone digital 5 * library suite from the New Zealand Digital Library Project at the 6 * University of Waikato, New Zealand. 4 * A component of the Greenstone Librarian Interface (GLI) application, 5 * part of the Greenstone digital library software suite from the New 6 * Zealand Digital Library Project at the University of Waikato, 7 * New Zealand. 7 8 * 8 * <BR><BR> 9 * Author: John Thompson 10 * Greenstone Project, New Zealand Digital Library 11 * University of Waikato 12 * http://www.nzdl.org 9 13 * 10 * Author: John Thompson, Greenstone Digital Library, University of Waikato 11 * 12 * <BR><BR> 13 * 14 * Copyright (C) 1999 New Zealand Digital Library Project 15 * 16 * <BR><BR> 14 * Copyright (C) 2004 New Zealand Digital Library, University of Waikato 17 15 * 18 16 * This program is free software; you can redistribute it and/or modify … … 21 19 * (at your option) any later version. 22 20 * 23 * <BR><BR>24 *25 21 * This program is distributed in the hope that it will be useful, 26 22 * but WITHOUT ANY WARRANTY; without even the implied warranty of 27 23 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 28 24 * GNU General Public License for more details. 29 *30 * <BR><BR>31 25 * 32 26 * You should have received a copy of the GNU General Public License … … 45 39 import org.greenstone.gatherer.util.Utility; 46 40 47 /** 48 * @author John Thompson, Greenstone Digital Library, University of Waikato49 * @version 2. 3c41 /** Generates a pretty about dialog which not only thanks those for their contributions but also meets our legal requirements if we wish to ship the JVM with GLI. 42 * @author John Thompson, Greenstone Project, New Zealand Digital Library, University of Waikato 43 * @version 2.41 final 50 44 */ 51 52 45 // RICOH SOURCE CODE PUBLIC LICENSE - http://www.risource.org/RPL/RPL-1.0A.shtml 53 46 public class AboutDialog 54 47 extends JDialog { 48 /** The default size of the about dialog. */ 49 static final private Dimension SIZE = new Dimension(600, 325); 50 /** The size of the GLI icon to display on dialog. */ 51 static final private int ICON_SIZE = 65; 52 /** A reference to ourself so that our inner classes can dismiss us. */ 55 53 private AboutDialog self; 54 /** The button used for dismissing the about dialog. */ 56 55 private JButton close_button; 57 58 static final private Dimension SIZE = new Dimension(600, 325); 59 static final private int ICON_SIZE = 65; 60 56 /** The constructor not only builds, but displays the about dialog. This method doesn't return until the dialog is dismissed. 57 * @param parent the JFrame which owns this dialog for use in centering the dialog 58 * @see org.greenstone.gatherer.Dictionary#get 59 * @see org.greenstone.gatherer.Dictionary#setBoth 60 * @see org.greenstone.gatherer.Dictionary#setText 61 * @see org.greenstone.gatherer.gui.AboutDialog.CloseButtonListener 62 * @see org.greenstone.gatherer.gui.GLIButton 63 * @see org.greenstone.gatherer.util.Utility#getImage 64 * @see org.greenstone.gatherer.util.Utility#PROGRAM_NAME 65 * @see org.greenstone.gatherer.util.Utility#PROGRAM_VERSION 66 */ 61 67 public AboutDialog(JFrame parent) { 62 68 super(parent, Dictionary.get("AboutDialog.Title"), true); … … 154 160 show(); 155 161 } 156 162 /** Listens for actions upon the close button, and when detected closes the dialog. */ 157 163 private class CloseButtonListener 158 164 implements ActionListener { 165 /** Called whenever an action occurs on the close button, thus asking the dialog to close. 166 * @param event an ActionEvent containing information about the button press 167 */ 159 168 public void actionPerformed(ActionEvent event) { 160 169 self.hide();
Note:
See TracChangeset
for help on using the changeset viewer.