RFR: 8279614: The left line of the TitledBorder is not painted on 150 scale factor [v15]

Alexey Ivanov aivanov at openjdk.java.net
Fri May 20 12:05:59 UTC 2022


On Tue, 17 May 2022 20:43:00 GMT, Alexey Ivanov <aivanov at openjdk.org> wrote:

>> Perhaps you are trying to get layout to happen ? That should be possible but it might be tricky.
>> But I think if you are going so far as pack() and can't change that, then show the frame regardless.
>
> Right, JPanel isn't laid out without being added to a peered component.
> 
> Maybe setting explicit positions to child panels will work, then the test can be headless.

> That looks odd. I mean if you show the frame, how is it disposed ?

The idea for that is that frame is shown only if `-show` parameter is passed. In this case, it's assumed the user runs the test from the IDE or on command line. So the frame is disposed of when the user closes it.

-------------

PR: https://git.openjdk.java.net/jdk/pull/7449



More information about the client-libs-dev mailing list