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

  1. package com.sun.java.swing;
  2.  
  3. import java.awt.event.WindowAdapter;
  4. import java.awt.event.WindowEvent;
  5.  
  6. final class JOptionPane$1 extends WindowAdapter {
  7.    // $FF: synthetic field
  8.    private final JOptionPane this$0;
  9.    boolean gotFocus;
  10.  
  11.    public void windowClosing(WindowEvent var1) {
  12.       this.this$0.setValue((Object)null);
  13.    }
  14.  
  15.    public void windowActivated(WindowEvent var1) {
  16.       if (!this.gotFocus) {
  17.          this.this$0.selectInitialValue();
  18.          this.gotFocus = true;
  19.       }
  20.  
  21.    }
  22.  
  23.    // $FF: synthetic method
  24.    JOptionPane$1(JOptionPane var1) {
  25.       this.this$0 = var1;
  26.       this.gotFocus = false;
  27.    }
  28. }
  29.