- 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/EditorDialog.java
r4367 r4427 40 40 import javax.swing.*; 41 41 import org.greenstone.gatherer.Gatherer; 42 import org.greenstone.gatherer.gui.SimpleMenuBar; 43 import org.greenstone.gatherer.gui.ModalDialog; 44 42 45 /** A class that extends a JDialog into a editor for editing large block of text for the metadata value. 43 46 * @author John Thompson, Greenstone Digital Library, University of Waikato … … 45 48 */ 46 49 final public class EditorDialog 47 extends JDialog50 extends ModalDialog 48 51 implements ActionListener { 49 52 /** The cancel, and I don't want the text I've typed, button. */ … … 56 59 private String result = null; 57 60 /** The size of the edit pop-up. */ 58 final static private Dimension SIZE = new Dimension(400,4 00);61 final static private Dimension SIZE = new Dimension(400,425); 59 62 /** Constructor.*/ 60 63 public EditorDialog() { 64 super(Gatherer.g_man); 65 61 66 } 62 67 /** Any implementation of ActionListener must include this method so we can be informed when an action has been performed on one of our target controls. In this case we generate a pop-up window to edit in. … … 77 82 setSize(SIZE); 78 83 setTitle(Gatherer.dictionary.get("General.Edit")); 84 setJMenuBar(new SimpleMenuBar("6.1")); 79 85 // Create 80 86 cancel = new JButton(Gatherer.dictionary.get("General.Cancel")); … … 101 107 Dimension screen_size = Gatherer.config.screen_size; 102 108 setLocation((screen_size.width - SIZE.width) / 2, (screen_size.height - SIZE.height) / 2); 103 s how();109 setVisible(true); 104 110 return result; 105 111 }
Note:
See TracChangeset
for help on using the changeset viewer.