Changeset 5667


Ignore:
Timestamp:
2003-10-17T04:43:41+13:00 (21 years ago)
Author:
jmt12
Message:

Changed the name field of the new Element prompt to be a NonWhitespaceField

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/mem/MetadataEditorManager.java

    r5593 r5667  
    5353import org.greenstone.gatherer.gui.SimpleMenuBar;
    5454import org.greenstone.gatherer.gui.ModalDialog;
     55import org.greenstone.gatherer.gui.NonWhitespaceField;
    5556import org.greenstone.gatherer.mem.Attribute;
    5657import org.greenstone.gatherer.mem.AttributeTableModel;
     
    974975    private JButton ok_button = null;
    975976    private JLabel set_field = null;
    976     private JTextField name_field = null;
     977    private NonWhitespaceField name_field = null;
    977978    public AddElementActionListener() {
    978979        super(self);
     
    10001001        name_label.setPreferredSize(LABEL_SIZE);
    10011002        Dictionary.setText(name_label, "MEM.Name");
    1002         name_field = new JTextField();
     1003        name_field = new NonWhitespaceField();
    10031004        name_field.setBackground(Gatherer.config.getColor("coloring.collection_tree_background", false));
    10041005        name_field.setForeground(Gatherer.config.getColor("coloring.collection_tree_foreground", false));
Note: See TracChangeset for help on using the changeset viewer.