- Timestamp:
- 2003-05-30T14:06:18+12:00 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/gui/FileAssociationDialog.java
r4367 r4427 46 46 import org.greenstone.gatherer.util.Utility; 47 47 import org.outerj.pollo.util.*; 48 import org.greenstone.gatherer.gui.SimpleMenuBar; 49 import org.greenstone.gatherer.gui.ModalDialog; 50 48 51 /** 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. 49 52 * @author John Thompson, Greenstone Digital Library, University of Waikato … … 51 54 */ 52 55 public class FileAssociationDialog 53 extends JDialog {56 extends ModalDialog { 54 57 /** <i>true</i> iff this addition action been cancelled by the user. */ 55 58 private boolean cancelled = false; … … 77 80 static final private Dimension LABEL_SIZE = new Dimension(150, 25); 78 81 /** The default size for the dialog. */ 79 static final private Dimension SIZE = new Dimension(600, 1 50);82 static final private Dimension SIZE = new Dimension(600, 175); 80 83 /** Create a new file association dialog. 81 84 * @param manager A reference to the <strong>FileAssociationManager</strong> so we can determine what extensions are already associated. … … 92 95 setSize(SIZE); 93 96 setTitle(get("Title")); 97 setJMenuBar(new SimpleMenuBar("0"));// need to find an appropriate help page 94 98 JPanel content_pane = (JPanel) getContentPane(); 95 99 content_pane.setBackground(Gatherer.config.getColor("coloring.collection_heading_background", false)); … … 181 185 182 186 } 183 s how();187 setVisible(true); 184 188 if(save_required) { 185 189 manager.setCommand((String)extension.getSelectedItem(), (String)command.getText());
Note:
See TracChangeset
for help on using the changeset viewer.