-
-
Notifications
You must be signed in to change notification settings - Fork 281
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Weird tooltip positioning #164
Comments
Yep, that positioning is weird... Class IntelliJ IDEA does not use So there is no easy fix for this. Will try to solve it in FlatPopupFactory.getPopup(), which is used to display tooltips (and other popups). |
@mlaggner in case of your notification button, which is always in lower-right corner of window, it would be better to show the notification tooltip always above the button (as in IntelliJ IDEA). You can do this by overriding Point getToolTipLocation(MouseEvent event) {
JToolTip tip = new JToolTip();
tip.setTipText( getToolTipText() );
Dimension tipSize = tip.getPreferredSize();
// TODO compute tip location based on tipSize and upper-right corner of button
} |
thanks for your great help (once more). Nevertheless, it would be great if the LaF could manage such corner cases! |
fixed in 0.42 |
I've created a window with an error indicator in the lower right corner which shows a tooltip (flat JButton) when hovered with the mouse like
but when I maximize the window (or move it to the lower right corner of the screeen), the tooltip hoveres the JButton which become unclickable
doing the same in IntelliJ (which is a swing UI too), this behaves as intended:
is there anything we can do by the LaF?
The text was updated successfully, but these errors were encountered: