Ignore:
Timestamp:
2003-05-30T14:06:18+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/FileAssociationDialog.java

    r4367 r4427  
    4646import org.greenstone.gatherer.util.Utility;
    4747import org.outerj.pollo.util.*;
     48import org.greenstone.gatherer.gui.SimpleMenuBar;
     49import org.greenstone.gatherer.gui.ModalDialog;
     50
    4851/** The file association allows the entry of new file associations and the modification of existing ones. This is done via a list of known extensions, and two fields to fill out relevant details.
    4952 * @author John Thompson, Greenstone Digital Library, University of Waikato
     
    5154 */
    5255public class FileAssociationDialog
    53     extends JDialog {
     56    extends ModalDialog {
    5457    /** <i>true</i> iff this addition action been cancelled by the user. */
    5558    private boolean cancelled = false;
     
    7780    static final private Dimension LABEL_SIZE = new Dimension(150, 25);
    7881    /** The default size for the dialog. */
    79     static final private Dimension SIZE = new Dimension(600, 150);
     82    static final private Dimension SIZE = new Dimension(600, 175);
    8083    /** Create a new file association dialog.
    8184     * @param manager A reference to the <strong>FileAssociationManager</strong> so we can determine what extensions are already associated.
     
    9295    setSize(SIZE);
    9396    setTitle(get("Title"));
     97    setJMenuBar(new SimpleMenuBar("0"));// need to find an appropriate help page
    9498    JPanel content_pane = (JPanel) getContentPane();
    9599    content_pane.setBackground(Gatherer.config.getColor("coloring.collection_heading_background", false));
     
    181185
    182186    }
    183     show();
     187    setVisible(true);
    184188    if(save_required) {
    185189        manager.setCommand((String)extension.getSelectedItem(), (String)command.getText());
Note: See TracChangeset for help on using the changeset viewer.