home *** CD-ROM | disk | FTP | other *** search
/ PC Plus SuperCD (UK) 2000 March / pcp161a.iso / handson / files / copyjava.exe / com / sun / java / swing / JOptionPane$3.class (.txt) < prev    next >
Encoding:
Java Class File  |  1998-02-26  |  1.3 KB  |  33 lines

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