Changeset 4663


Ignore:
Timestamp:
2003-06-13T17:28:10+12:00 (21 years ago)
Author:
jmt12
Message:

Changed KeyAdapter to DocumentListener

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/gui/NewCollectionDetailsPrompt.java

    r4428 r4663  
    3939     */
    4040    public NewCollectionDetailsPrompt() {
    41     super(Gatherer.g_man);
     41    super(Gatherer.g_man, true);
    4242    this.cancelled = true;
    4343    this.self = this;
    4444    // Setup
    4545    setJMenuBar(new SimpleMenuBar("2.1"));
    46     setModal(true);
    4746    setSize(size);
    4847    setTitle(get("Title"));
    49 
    5048    // Model building. Build a model of all of the collections in the gsdl collect directory with the appropriate directories and hardcode the big five.
    5149    Vector base_collection_model = new Vector();
     
    290288    }
    291289    public void keyPressed(KeyEvent event) {
    292         component1.setForeground(Gatherer.config.getColor("coloring.collection_tree_foreground", false));
    293         component1.setBackground(Gatherer.config.getColor("coloring.collection_tree_background", false));
     290        //component1.setForeground(Gatherer.config.getColor("coloring.editable", false));
     291        component1.setBackground(Gatherer.config.getColor("coloring.editable", false));
    294292        if(component2 != null) {
    295         component2.setForeground(Gatherer.config.getColor("coloring.collection_tree_foreground", false));
    296         component2.setBackground(Gatherer.config.getColor("coloring.collection_tree_background", false));
     293        //component2.setForeground(Gatherer.config.getColor("coloring.editable", false));
     294        component2.setBackground(Gatherer.config.getColor("coloring.editable", false));
    297295        }
    298296    }
Note: See TracChangeset for help on using the changeset viewer.