home *** CD-ROM | disk | FTP | other *** search
/ S283 Planetary Science &n…he Search for Life DVD 2 / DVD-ROM.iso / kepler / kepler.jar / WButton$1.class (.txt) < prev    next >
Encoding:
Java Class File  |  2002-10-21  |  837 b   |  25 lines

  1. import java.awt.Component;
  2. import java.awt.event.ActionEvent;
  3. import java.awt.event.KeyAdapter;
  4. import java.awt.event.KeyEvent;
  5.  
  6. final class WButton$1 extends KeyAdapter {
  7.    // $FF: synthetic field
  8.    private final Component val$t;
  9.    // $FF: synthetic field
  10.    private final WButton this$0;
  11.  
  12.    public void keyPressed(KeyEvent var1) {
  13.       if (var1.getKeyCode() == 10 && this.this$0.isEnabled()) {
  14.          this.val$t.dispatchEvent(new ActionEvent(this.val$t, 1001, ""));
  15.       }
  16.  
  17.    }
  18.  
  19.    // $FF: synthetic method
  20.    WButton$1(Component var1, WButton var2) {
  21.       this.val$t = var1;
  22.       this.this$0 = var2;
  23.    }
  24. }
  25.