526 |
} |
} |
527 |
else |
else |
528 |
{ |
{ |
529 |
SwingUtilities.convertPointToScreen(p, currentComponent); |
if (currentComponent.isShowing()) |
530 |
tooltipWindow = new JWindow(); |
SwingUtilities.convertPointToScreen(p, currentComponent); |
531 |
tooltipWindow.getContentPane().add(currentTip); |
tooltipWindow = new JWindow(); |
532 |
tooltipWindow.setFocusable(false); |
tooltipWindow.getContentPane().add(currentTip); |
533 |
tooltipWindow.pack(); |
tooltipWindow.setFocusable(false); |
534 |
tooltipWindow.setBounds(p.x, p.y, dims.width, dims.height); |
tooltipWindow.pack(); |
535 |
tooltipWindow.show(); |
tooltipWindow.setBounds(p.x, p.y, dims.width, dims.height); |
536 |
|
tooltipWindow.show(); |
537 |
} |
} |
538 |
currentTip.setVisible(true); |
currentTip.setVisible(true); |
539 |
} |
} |