RFR: JDK-8251177: [macosx] The text "big" is truncated in JTabbedPane [v5]
Prasanta Sadhukhan
psadhukhan at openjdk.java.net
Thu Apr 21 16:22:29 UTC 2022
On Wed, 20 Apr 2022 23:55:05 GMT, Harshitha Onkar <duke at openjdk.java.net> wrote:
>> The exisiting manual test case tests different html styles of JTabbedPane tab title. The tab with "big" as title is seen to be clipped on Aqua LAF for larger font-size. In other LAFs it is observed that bigger font-size can be accommodated without clipping.
>>
>> The following approaches were evaluated before considering it as not a test issue -
>>
>> - Aqua LAF has a different tab style compared to other LAFs as seen in the screenshot below. Limiting font size on Aqua LAF requires scaling down the text which might be incompatible with Aqua LAF.
>>
>> - Removing existing constraints on text and icon is incompatible for Aqua LAF.
>>
>> Since the above two approaches are incompatible with Aqua and it is not a test issue, a note has been added about clipped text and this test has been removed from problem list
>>
>> 
>
> Harshitha Onkar has updated the pull request incrementally with one additional commit since the last revision:
>
> changed test case to use PassFailJFrame instead of Applet
test/jdk/javax/swing/JTabbedPane/4209065/bug4209065.java line 51:
> 49: tab height but this is OK and NOT a failure.
> 50: """;
> 51:
looks ok in jtreg but standalone execution in my windows fails with this String initialization. Probably we can do normal string with "+" as continuation instead of """ literal
javac bug4209065.java
bug4209065.java:44: error: unclosed string literal
private static final String text = """
-------------
PR: https://git.openjdk.java.net/jdk/pull/8307
More information about the client-libs-dev
mailing list