home *** CD-ROM | disk | FTP | other *** search
/ S283 Planetary Science &n…he Search for Life DVD 2 / DVD-ROM.iso / install / jre1_3 / lib / rt.jar / javax / swing / ToolTipManager$1.class (.txt) < prev    next >
Encoding:
Java Class File  |  1979-12-31  |  1.5 KB  |  38 lines

  1. package javax.swing;
  2.  
  3. import java.awt.Point;
  4. import java.awt.event.ActionEvent;
  5. import java.util.EventObject;
  6.  
  7. class ToolTipManager$1 extends AbstractAction {
  8.    // $FF: synthetic field
  9.    private final ToolTipManager this$0;
  10.  
  11.    ToolTipManager$1(ToolTipManager var1) {
  12.       this.this$0 = var1;
  13.    }
  14.  
  15.    public void actionPerformed(ActionEvent var1) {
  16.       if (this.this$0.tipWindow != null) {
  17.          this.this$0.hideTipWindow();
  18.       } else {
  19.          this.this$0.hideTipWindow();
  20.          this.this$0.enterTimer.stop();
  21.          this.this$0.exitTimer.stop();
  22.          this.this$0.insideTimer.stop();
  23.          this.this$0.insideComponent = (JComponent)((EventObject)var1).getSource();
  24.          if (this.this$0.insideComponent != null) {
  25.             this.this$0.toolTipText = this.this$0.insideComponent.getToolTipText();
  26.             this.this$0.preferredLocation = new Point(10, this.this$0.insideComponent.getHeight() + 10);
  27.             this.this$0.showTipWindow();
  28.             if (ToolTipManager.access$000(this.this$0) == null) {
  29.                ToolTipManager.access$002(this.this$0, ToolTipManager.access$100(this.this$0));
  30.             }
  31.  
  32.             this.this$0.insideComponent.addFocusListener(ToolTipManager.access$000(this.this$0));
  33.          }
  34.       }
  35.  
  36.    }
  37. }
  38.