475 |
|
|
476 |
if (isLightWeightPopupEnabled()) |
if (isLightWeightPopupEnabled()) |
477 |
{ |
{ |
478 |
JLayeredPane pane = ((JRootPane) SwingUtilities. |
JLayeredPane pane = null; |
479 |
getAncestorOfClass(JRootPane.class, currentComponent)). |
JRootPane r = ((JRootPane) SwingUtilities. |
480 |
getLayeredPane(); |
getAncestorOfClass(JRootPane.class, currentComponent)); |
481 |
|
if (r != null) |
482 |
// This should never happen, but just in case. |
pane = r.getLayeredPane(); |
483 |
if (pane == null) |
if (pane == null) |
484 |
return; |
return; |
485 |
|
|
486 |
if (containerPanel != null) |
if (containerPanel != null) |
487 |
hideTip(); |
hideTip(); |
488 |
|
|
545 |
p.x = 0; |
p.x = 0; |
546 |
if (p.y + d.height < c.getHeight()) |
if (p.y + d.height < c.getHeight()) |
547 |
p.y += d.height; |
p.y += d.height; |
548 |
else if (p.y + d.height > c.getHeight()) |
if (p.y + d.height > c.getHeight()) |
549 |
p.y -= d.height*2; |
p.y -= d.height*2; |
550 |
|
|
551 |
return p; |
return p; |