home *** CD-ROM | disk | FTP | other *** search
/ Computer Shopper 144 / DPCS0200.iso / Internet / Supanet / system / swing.jar / javax / swing / ToolTipManager$1.class (.txt) < prev    next >
Encoding:
Java Class File  |  1998-11-05  |  1.6 KB  |  41 lines

  1. package javax.swing;
  2.  
  3. import java.awt.Point;
  4. import java.awt.event.ActionEvent;
  5. import java.util.EventObject;
  6.  
  7. final class ToolTipManager$1 extends AbstractAction {
  8.    // $FF: synthetic field
  9.    private final ToolTipManager this$0;
  10.  
  11.    // $FF: synthetic method
  12.    ToolTipManager$1(ToolTipManager var1) {
  13.       this.this$0 = var1;
  14.    }
  15.  
  16.    public void actionPerformed(ActionEvent var1) {
  17.       if (this.this$0.tipWindow != null) {
  18.          this.this$0.hideTipWindow();
  19.       } else {
  20.          this.this$0.hideTipWindow();
  21.          this.this$0.enterTimer.stop();
  22.          this.this$0.exitTimer.stop();
  23.          this.this$0.insideTimer.stop();
  24.          this.this$0.insideComponent = (JComponent)((EventObject)var1).getSource();
  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$0(this.this$0) == null) {
  29.             ToolTipManager.access$2(this.this$0, ToolTipManager.access$1(this.this$0));
  30.          }
  31.  
  32.          this.this$0.insideComponent.addFocusListener(ToolTipManager.access$0(this.this$0));
  33.       }
  34.  
  35.    }
  36.  
  37.    public boolean isEnabled() {
  38.       return true;
  39.    }
  40. }
  41.