I am not sure is it possible to prove, but I think that we need to pass tabPane as a component to ClipStrinUfNecessary.

On 17.08.2017 3:48, Prasanta Sadhukhan wrote:
Fix looks good.

But, can you update test/javax/swing/JTabbedPane/4310381/bug4310381.java to include the test for all installed l&fs so that we can see if there is problem in any other l&fs?

Regards
Prasanta
On 8/17/2017 2:08 PM, Shashidhara Veerabhadraiah wrote:

Hi All, Please review a fix for the JDK- 8004029 where the long tab titles were not clipped with the dots at the end to indicate a lengthy title. The aqua look and feel which is the default laf for mac does the title clipping only leading to an ambiguous UI where in the clipped title would look like the /_complete_/ title though it is not. Hence it is good to show dots at the end indicating a much bigger title exists though the tab does not have enough real estate to display the complete title.

_Solution and fix:_ I have updated the aqua laf module to clip the title text and put the dots at the end if the text size is larger than the tab size. Below is the picture /_after_/ the fix.

Bug: https://bugs.openjdk.java.net/browse/JDK-8004029

Webrev: http://cr.openjdk.java.net/~aghaisas/shashi/8004029/webrev.00/ <http://cr.openjdk.java.net/%7Eaghaisas/shashi/8004029/webrev.00/>

Thanks and regards,

Shashi




--
Best regards, Sergey.

Reply via email to