Changeset 4428


Ignore:
Timestamp:
2003-05-30T14:16:50+12:00 (21 years ago)
Author:
kjdon
Message:

the modal dialog now is one of our special ModalDialogs which only block the parent, enabling the use of help files while the dialog is open. A SimpleMenuBar with help on it has been added to the dialog.

Location:
trunk/gli/src/org/greenstone/gatherer/gui
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/gui/NewCollectionDetailsPrompt.java

    r4367 r4428  
    1111import org.greenstone.gatherer.collection.CollectionConfiguration;
    1212import org.greenstone.gatherer.util.Utility;
     13import org.greenstone.gatherer.gui.SimpleMenuBar;
     14import org.greenstone.gatherer.gui.ModalDialog;
    1315
    1416public class NewCollectionDetailsPrompt
    15     extends JDialog {
     17    extends ModalDialog {
    1618    private boolean cancelled;
    1719    private File base_final;
     
    3032    static private Dimension label_size = new Dimension(230, 25);
    3133    /** The size of this new collection dialog box. */
    32     static private Dimension size = new Dimension(700, 350);
     34    static private Dimension size = new Dimension(700, 375);
    3335    static private int FILENAME_SIZE = 8;
    3436
     
    206208    Dimension screen_size = Gatherer.config.screen_size;
    207209    setLocation((screen_size.width - size.width) / 2, (screen_size.height - size.height) / 2);
    208     show();
     210    setVisible(true);
    209211    }
    210212
  • trunk/gli/src/org/greenstone/gatherer/gui/NewCollectionMetadataPrompt.java

    r4367 r4428  
    1212import org.greenstone.gatherer.gui.GUIManager;
    1313import org.greenstone.gatherer.gui.SimpleMenuBar;
     14import org.greenstone.gatherer.gui.ModalDialog;
    1415import org.greenstone.gatherer.cdm.ElementWrapper;
    1516import org.greenstone.gatherer.msm.MetadataSet;
     
    1920
    2021public class NewCollectionMetadataPrompt
    21     extends JDialog {
     22    extends ModalDialog {
    2223
    2324    private boolean cancelled = true;
     
    101102    Dimension screen_size = Gatherer.config.screen_size;
    102103    setLocation((screen_size.width - size.width) / 2, (screen_size.height - size.height) / 2);
    103     show();
     104    setVisible(true);
    104105    }
    105106
  • trunk/gli/src/org/greenstone/gatherer/gui/Preferences.java

    r4367 r4428  
    99import org.greenstone.gatherer.checklist.Entry;
    1010import org.greenstone.gatherer.gui.GUIManager;
     11import org.greenstone.gatherer.gui.ModalDialog;
    1112import org.greenstone.gatherer.gui.NumberField;
     13import org.greenstone.gatherer.gui.SimpleMenuBar;
    1214import org.greenstone.gatherer.util.Utility;
    1315import org.greenstone.gatherer.util.XORToggleButtonGroup;
     
    1517
    1618public class Preferences
    17     extends JDialog {
     19    extends ModalDialog {
    1820
    1921    private CheckList warning_preferences_check_list;
     
    3739    static final Dimension LABEL_SIZE = new Dimension(100, 25);
    3840    static final Dimension ROW_SIZE = new Dimension(380, 25);
    39     static final Dimension SIZE = new Dimension(400, 320);
     41    static final Dimension SIZE = new Dimension(400, 345);
    4042    static final String TRUE = "true";
    4143
     
    4648    setSize(SIZE);
    4749    setTitle("Preferences");
     50    setJMenuBar(new SimpleMenuBar("10.2"));
    4851    // Creation
    4952    JPanel content_pane = (JPanel) getContentPane();
     
    9093    tab_pane = null;
    9194    content_pane = null;
    92     show();
     95    setVisible(true);
    9396    }
    9497
Note: See TracChangeset for help on using the changeset viewer.