a problem involving top level Y translation

Alan Snyder javalists at cbfiddle.com
Mon Dec 21 15:28:04 UTC 2020


https://bugs.openjdk.java.net/browse/JDK-8258788

Looks like you are using the window insets but not fully updating after a change.



> On Dec 20, 2020, at 9:33 PM, Ajit Ghaisas <ajit.ghaisas at oracle.com> wrote:
> 
> Hi Alan,
> 
>   Thanks for providing the feedback.
> 
>   Regarding this particular issue, we would appreciate if you can a file a bug at - https://bugs.openjdk.java.net/ - with a test case.
>   It would be easier for us to reproduce the issue and address it.
> 
> Regards,
> Ajit
> 
>> On 18-Dec-2020, at 8:59 PM, Alan Snyder <javalists at cbfiddle.com> wrote:
>> 
>> 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