360 |
&& getContentPaneDeepestComponent(event) == currentComponent) |
&& getContentPaneDeepestComponent(event) == currentComponent) |
361 |
return; |
return; |
362 |
currentPoint = event.getPoint(); |
currentPoint = event.getPoint(); |
363 |
|
|
364 |
currentComponent = (Component) event.getSource(); |
currentComponent = (Component) event.getSource(); |
365 |
|
|
366 |
if (exitTimer.isRunning()) |
if (exitTimer.isRunning()) |
367 |
{ |
{ |
368 |
exitTimer.stop(); |
exitTimer.stop(); |
369 |
insideTimer.start(); |
insideTimer.start(); |
370 |
return; |
showTip(); |
371 |
|
return; |
372 |
} |
} |
|
|
|
373 |
// This should always be stopped unless we have just fake-exited. |
// This should always be stopped unless we have just fake-exited. |
374 |
if (! enterTimer.isRunning()) |
if (!enterTimer.isRunning()) |
375 |
enterTimer.start(); |
enterTimer.start(); |
376 |
} |
} |
377 |
|
|
378 |
/** |
/** |
379 |
* This method is called when the mouse exits a JComponent registered with |
* This method is called when the mouse exits a JComponent registered with the |
380 |
* the ToolTipManager. When the mouse exits, the tooltip should be hidden |
* ToolTipManager. When the mouse exits, the tooltip should be hidden |
381 |
* immediately. |
* immediately. |
382 |
* |
* |
383 |
* @param event The MouseEvent. |
* @param event |
384 |
|
* The MouseEvent. |
385 |
*/ |
*/ |
386 |
public void mouseExited(MouseEvent event) |
public void mouseExited(MouseEvent event) |
387 |
{ |
{ |
392 |
currentComponent = null; |
currentComponent = null; |
393 |
hideTip(); |
hideTip(); |
394 |
|
|
395 |
if (! enterTimer.isRunning() && insideTimer.isRunning()) |
if (! enterTimer.isRunning()) |
396 |
exitTimer.start(); |
exitTimer.start(); |
397 |
if (enterTimer.isRunning()) |
if (enterTimer.isRunning()) |
398 |
enterTimer.stop(); |
enterTimer.stop(); |
452 |
*/ |
*/ |
453 |
void showTip() |
void showTip() |
454 |
{ |
{ |
455 |
if (!enabled || currentComponent == null || !currentComponent.isEnabled()) |
if (!enabled || currentComponent == null || !currentComponent.isEnabled() |
456 |
|
|| !currentComponent.isShowing()) |
457 |
{ |
{ |
458 |
popup = null; |
popup = null; |
459 |
return; |
return; |