Changeset 6091


Ignore:
Timestamp:
2003-12-02T17:23:31+13:00 (20 years ago)
Author:
jmt12
Message:

Tried to stop our modal and java's modal dialogs fighting, but it didn't help

File:
1 edited

Legend:

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

    r5589 r6091  
    125125    public void setVisible (boolean visible) {
    126126    ///ystem.err.println("setVisible(" + visible + ")");
    127     getParent ().setEnabled (!(visible && modal));
     127    //getParent ().setEnabled (!(visible && modal));
    128128    super.setVisible (visible);
    129129    if (modal && visible) {
    130130        try {
    131131        if (SwingUtilities.isEventDispatchThread ()) {
    132             ///ystem.err.println("is Event Dispatch Thread.");
     132            ///ystem.err.println("is Event Dispatch Thread. Only process certain events.");
    133133            EventQueue theQueue = getToolkit().getSystemEventQueue();
    134134            while (isVisible ()) {
     
    143143            ///ystem.err.println("No longer visible - AWT");
    144144                } else synchronized (getTreeLock ()) {
    145             ///ystem.err.println("is other Thread.");
     145            ///ystem.err.println("is other Thread. Block all events.");
    146146            while (isVisible ()) {
    147147            try {
     
    153153                break;
    154154            }
    155             ///ystem.err.println("No longer visible - Other");
    156155            }
     156            ///ystem.err.println("No longer visible - Other");
    157157        }
    158158            } catch (Exception ex) {
     
    167167        }
    168168    }
     169    else if(modal && !waiting) {
     170        ///ystem.err.println("Modal Dialog is not currently waiting.");
     171    }
     172    else if(!modal) {
     173        ///ystem.err.println("Dialog is not modal.");
     174    }
    169175    }
    170176   
Note: See TracChangeset for help on using the changeset viewer.