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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.