home *** CD-ROM | disk | FTP | other *** search
/ S283 Planetary Science &… the Search for Life CD 3 / 0_CD-ROM.iso / install / jre1_3 / lib / rt.jar / javax / swing / JOptionPane$3.class (.txt) < prev    next >
Encoding:
Java Class File  |  1979-12-31  |  1.0 KB  |  32 lines

  1. package javax.swing;
  2.  
  3. import java.beans.PropertyChangeEvent;
  4. import java.beans.PropertyChangeListener;
  5. import java.beans.PropertyVetoException;
  6. import java.util.EventObject;
  7.  
  8. class JOptionPane$3 implements PropertyChangeListener {
  9.    // $FF: synthetic field
  10.    private final JInternalFrame val$iFrame;
  11.    // $FF: synthetic field
  12.    private final JOptionPane this$0;
  13.  
  14.    JOptionPane$3(JOptionPane var1, JInternalFrame var2) {
  15.       this.this$0 = var1;
  16.       this.val$iFrame = var2;
  17.    }
  18.  
  19.    public void propertyChange(PropertyChangeEvent var1) {
  20.       if (this.val$iFrame.isVisible() && ((EventObject)var1).getSource() == this.this$0 && (var1.getPropertyName().equals("value") || var1.getPropertyName().equals("inputValue"))) {
  21.          try {
  22.             this.val$iFrame.setClosed(true);
  23.          } catch (PropertyVetoException var3) {
  24.          }
  25.  
  26.          this.val$iFrame.setVisible(false);
  27.          this.val$iFrame.stopModal();
  28.       }
  29.  
  30.    }
  31. }
  32.