home *** CD-ROM | disk | FTP | other *** search
/ Sky at Night 2007 June / SAN CD 6-2007 CD-ROM 25.iso / pc / Software / AstroGrav_Win / Java / jre1.6.0 / lib / rt.jar / javax / swing / JOptionPane$5.class (.txt) < prev    next >
Encoding:
Java Class File  |  2006-11-29  |  1.6 KB  |  44 lines

  1. package javax.swing;
  2.  
  3. import java.awt.Container;
  4. import java.beans.PropertyChangeEvent;
  5. import java.beans.PropertyChangeListener;
  6. import java.beans.PropertyVetoException;
  7. import java.lang.reflect.InvocationTargetException;
  8. import java.lang.reflect.Method;
  9. import java.security.AccessController;
  10.  
  11. final class JOptionPane$5 implements PropertyChangeListener {
  12.    // $FF: synthetic field
  13.    final JInternalFrame val$iFrame;
  14.    // $FF: synthetic field
  15.    final JOptionPane this$0;
  16.  
  17.    JOptionPane$5(JOptionPane var1, JInternalFrame var2) {
  18.       this.this$0 = var1;
  19.       this.val$iFrame = var2;
  20.    }
  21.  
  22.    public void propertyChange(PropertyChangeEvent var1) {
  23.       if (this.val$iFrame.isVisible() && var1.getSource() == this.this$0 && var1.getPropertyName().equals("value")) {
  24.          try {
  25.             Object var2 = AccessController.doPrivileged(new JOptionPane.ModalPrivilegedAction(Container.class, "stopLWModal"));
  26.             if (var2 != null) {
  27.                ((Method)var2).invoke(this.val$iFrame, (Object[])null);
  28.             }
  29.          } catch (IllegalAccessException var4) {
  30.          } catch (IllegalArgumentException var5) {
  31.          } catch (InvocationTargetException var6) {
  32.          }
  33.  
  34.          try {
  35.             this.val$iFrame.setClosed(true);
  36.          } catch (PropertyVetoException var3) {
  37.          }
  38.  
  39.          this.val$iFrame.setVisible(false);
  40.       }
  41.  
  42.    }
  43. }
  44.