mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
CCE - JDialog is not JComponent
This commit is contained in:
@@ -122,7 +122,8 @@ class SlideComponent extends JComponent {
|
||||
.setTextBg(HintUtil.INFORMATION_COLOR)
|
||||
.setShowImmediately(true);
|
||||
|
||||
myTooltipHint.show(this, point.x, point.y, (JComponent)KeyboardFocusManager.getCurrentKeyboardFocusManager().getFocusOwner(), hint);
|
||||
final Component owner = KeyboardFocusManager.getCurrentKeyboardFocusManager().getFocusOwner();
|
||||
myTooltipHint.show(this, point.x, point.y, owner instanceof JComponent ? (JComponent)owner : null, hint);
|
||||
} else {
|
||||
myTooltipHint.setLocation(new RelativePoint(this, point));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user