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, a third approach 
was considered - explicitly stating in test that text may not fit in the tab 
and this is not a test bug.

![image](https://user-images.githubusercontent.com/95945681/164093604-ca7ecbc3-09c2-4338-bd2a-f8c81c12f360.png)

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

Commit messages:
 - expanded imports
 - JTabbedPane test case changes

Changes: https://git.openjdk.java.net/jdk/pull/8307/files
 Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=8307&range=00
  Issue: https://bugs.openjdk.java.net/browse/JDK-8251177
  Stats: 13 lines in 2 files changed: 8 ins; 1 del; 4 mod
  Patch: https://git.openjdk.java.net/jdk/pull/8307.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/8307/head:pull/8307

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

Reply via email to