Closed poce1don closed 3 months ago
Seems to be a similar (or same) clipping bug in Swing as described in PR #864.
It is also in Metal and Nimbus L&F (you need to change empty border of panel
to 9,10,10,10
):
This Swing scales part has a lot of bugs on Windows. At least in this case, the solution is simple. Thanks for the tip! 👍
... At least in this case, the solution is simple. Thanks for the tip! 👍
And what is the solution 🤔
It is also in Metal and Nimbus L&F (you need to change empty border of panel to 9,10,10,10):
Your tip solved my problem.
Using ScrollPane.viewportBorder also solves this screenshot error, in fact that's what I'm using and the border is being painted without errors at any scale.
Karl,
When the rendered cells of the JList are JPanel, the rendered content is "invading" the place intended for the border, only when the scrolling is at the beginning, in other parts, the problem does not occur.
The bug only occurs at 1.25x scale.
If the cells are rendered as standard, the bug does not occur.
The tested FlatLaf versions were 3.5 and 3.6-SNAPSHOT.
Using HiDPIUtils.installHiDPIRepaintManager() also did not solve the bug.