Skip to content
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

Regression: Popups using JToolTip components do not respect their location #188

Closed
Chrriis opened this issue Oct 15, 2020 · 2 comments
Closed
Milestone

Comments

@Chrriis
Copy link
Contributor

Chrriis commented Oct 15, 2020

While testing the new features (sorry @DevCharly, I did not have much time to do it earlier!) I stumbled upon this major regression for us: the location of a popup is not respected:
DataTipsOffset
It seems that the use of JToolTip is a problem. If I replace with a JPanel, then the position is correct (but not the look).

Here is the test case:
TableTestWithTip.zip

(another problem shown in this test case: "table.setShowGrid(true)" is not respected by the boolean column. Should I open a bug?)

@DevCharly
Copy link
Collaborator

Sorry, commit 8925c27 (fix for #164) is responsible for the wrong tooltip location.
Working on a solution...

@DevCharly
Copy link
Collaborator

Regarding missing grid lines in boolean column: this is normal because table intercell spacing is set to 0,0 in FlatLaf to avoid gaps in selection:

image

You should also set intercell spacing if showing grid:

table.setIntercellSpacing( new Dimension( 1, 1 ) );

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants