a problem involving top level Y translation
Alan Snyder
javalists at cbfiddle.com
Fri Dec 18 15:29:22 UTC 2020
I’ve encountered another problem using Lanai/Metal.
You may not care about this problem, because I have observed it only when I reach under the covers and change the window title bar style, but it works in all other JDK versions and I’d like to keep it working.
My window content is inside a JPanel with a border. The content pane is the JPanel with the border and one child. The child is painting the content.
What I observe is that the child content is painted as if the top inset = 0, regardless of the actual value.
When I look at the graphics context created for the child component, it has a transform that correctly reflects the X and Y offsets, but it appears that only the X offset is obeyed.
Another way of describing the problem: when I set the border to Empty(30, 30, 30, 30), it renders as if the border were Empty(0, 30, 60, 30).
More information about the lanai-dev
mailing list