home *** CD-ROM | disk | FTP | other *** search
/ S283 Planetary Science &n…he Search for Life DVD 2 / DVD-ROM.iso / install / jre1_3 / lib / rt.jar / javax / swing / ProgressMonitor$2.class (.txt) < prev    next >
Encoding:
Java Class File  |  1979-12-31  |  1.1 KB  |  26 lines

  1. package javax.swing;
  2.  
  3. import java.beans.PropertyChangeEvent;
  4. import java.beans.PropertyChangeListener;
  5. import java.util.EventObject;
  6.  
  7. class ProgressMonitor$2 implements PropertyChangeListener {
  8.    // $FF: synthetic field
  9.    private final JDialog val$dialog;
  10.    // $FF: synthetic field
  11.    private final ProgressMonitor.ProgressOptionPane this$1;
  12.  
  13.    ProgressMonitor$2(ProgressMonitor.ProgressOptionPane var1, JDialog var2) {
  14.       this.this$1 = var1;
  15.       this.val$dialog = var2;
  16.    }
  17.  
  18.    public void propertyChange(PropertyChangeEvent var1) {
  19.       if (this.val$dialog.isVisible() && ((EventObject)var1).getSource() == this.this$1 && (var1.getPropertyName().equals("value") || var1.getPropertyName().equals("inputValue"))) {
  20.          this.val$dialog.setVisible(false);
  21.          this.val$dialog.dispose();
  22.       }
  23.  
  24.    }
  25. }
  26.