463 |
&& currentComponent instanceof JComponent) |
&& currentComponent instanceof JComponent) |
464 |
currentTip = ((JComponent) currentComponent).createToolTip(); |
currentTip = ((JComponent) currentComponent).createToolTip(); |
465 |
|
|
466 |
|
currentTip.setVisible(true); |
467 |
Container parent = currentComponent.getParent(); |
Container parent = currentComponent.getParent(); |
468 |
Point p = currentPoint; |
Point p = currentPoint; |
469 |
Dimension dims = currentTip.getPreferredSize(); |
Dimension dims = currentTip.getPreferredSize(); |
521 |
tooltipWindow.pack(); |
tooltipWindow.pack(); |
522 |
tooltipWindow.setBounds(p.x, p.y, dims.width, dims.height); |
tooltipWindow.setBounds(p.x, p.y, dims.width, dims.height); |
523 |
tooltipWindow.show(); |
tooltipWindow.show(); |
|
tooltipWindow.validate(); |
|
|
tooltipWindow.repaint(); |
|
524 |
} |
} |
|
currentTip.setVisible(true); |
|
|
if (!currentTip.isValid()) |
|
|
currentTip.revalidate(); |
|
|
currentTip.repaint(); |
|
525 |
} |
} |
526 |
|
|
527 |
/** |
/** |