Looks fine.
On 05/03/2019 21:03, Prasanta Sadhukhan wrote:
Hi Sergey,
Modified test in webrev to iterate through installed L&Fs
http://cr.openjdk.java.net/~psadhukhan/8215396/webrev.1/
Regards
Prasanta
On 06-Mar-19 6:35 AM, Sergey Bylokhov wrote:
Hi, Prasanta.
The change looks fine, but I have two comments.
- Please close the JDK-7151452 as a duplicate of JDK-8215396, since you sent
JDK-8215396 to the review.
- Looks like the test depends on the L&F, on my system it is passed on macOS on
jdk11, probably it should checks all installe L&Fs?
On 27/02/2019 02:25, Prasanta Sadhukhan wrote:
Hi All,
Please review a fix for an issue where it is seen that for SCROLL_TAB_LAYOUT
the border of the content of JTabbedPane is not fully shown, whereas for
WRAP_TAB_LAYOUT policy, the content is fully shown.
It seems BasicTabbedPaneUI.TabbedPaneScrollLayout inner class (used for
SCROLL_TAB_LAYOUT) has preferredTabAreaHeight() and preferredTabAreaWidth()
which are overridden from
its superclass, BasicTabbedPaneUI.TabbedPaneLayout (used for WRAP_TAB_LAYOUT).
In superclass, these methods take into account the tab area insets, but the
overridden methods in TabbedPaneScrollLayout don't.
Proposed fix is to use existing methods
[calculateTabAreaHeight,calculateTabAreaWidth] for calculating the size as was
done for WRAP_TAB_LAYOUT.
Bug: https://bugs.openjdk.java.net/browse/JDK-8215396
webrev: http://cr.openjdk.java.net/~psadhukhan/8215396/webrev.0/
Regards
Prasanta
--
Best regards, Sergey.