470 |
|
|
471 |
if (parent instanceof JPopupMenu) |
if (parent instanceof JPopupMenu) |
472 |
setLightWeightPopupEnabled(((JPopupMenu) parent).isLightWeightPopupEnabled()); |
setLightWeightPopupEnabled(((JPopupMenu) parent).isLightWeightPopupEnabled()); |
473 |
|
else |
474 |
|
setLightWeightPopupEnabled(true); |
475 |
|
|
476 |
if (isLightWeightPopupEnabled()) |
if (isLightWeightPopupEnabled()) |
477 |
{ |
{ |
504 |
pane.add(containerPanel); |
pane.add(containerPanel); |
505 |
containerPanel.setBounds(p.x, p.y, dims.width, dims.height); |
containerPanel.setBounds(p.x, p.y, dims.width, dims.height); |
506 |
currentTip.setBounds(0, 0, dims.width, dims.height); |
currentTip.setBounds(0, 0, dims.width, dims.height); |
507 |
|
containerPanel.validate(); |
508 |
|
containerPanel.repaint(); |
509 |
} |
} |
510 |
else if (currentComponent.isShowing()) |
else if (currentComponent.isShowing()) |
511 |
{ |
{ |
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(); |
524 |
|
tooltipWindow.repaint(); |
525 |
} |
} |
526 |
currentTip.setVisible(true); |
currentTip.setVisible(true); |
527 |
|
currentTip.repaint(); |
528 |
} |
} |
529 |
|
|
530 |
/** |
/** |