On 08.06.15 16:33, Semyon Sadetsky wrote:
Hi Sergey,
as agreed I've added UIResource check:
http://cr.openjdk.java.net/~ssadetsky/8078269/webrev.01/
Note that null value is not a UIResource, but tabAreaBackground should
be used in this case.
--Semyon
On 5/15/2015 3:10 PM, Semyon Sadetsky wrote:
On 5/15/2015 2:06 PM, Sergey Bylokhov wrote:
On 14.05.15 18:00, Semyon Sadetsky wrote:
Sergey,
Why the component background priority looks reasonable for you?
Because otherwise there is no way to change the color of one
particular component.
A component has only one background color which is set by L&F to
the default value. But it is not enough for the tabbed pane
component which has more then one background surfaces and L&F can
define more background colors to paint tabbed pane more precisely.
In this case the common component background should have second
priority.
What is the difference between "TabbedPane.background" and
"TabbedPane.tabAreaBackground" in the metal l&f?
"TabbedPane.background" is the default background.
--Semyon
On 5/14/2015 5:39 PM, Sergey Bylokhov wrote:
Hi, Semyon.
Usage of background(if it was set) instead of property looks
reasonable. Please clarify who sets default color of component
explicitly to the value other than from UI property?
On 14.05.15 17:12, Semyon Sadetsky wrote:
Hello,
Please review fix for JDK9:
bug: https://bugs.openjdk.java.net/browse/JDK-8078269
webrev: http://cr.openjdk.java.net/~ssadetsky/8078269/webrev.00/
This is regression of the 8007563 which was incorrect fix of the
4690946 regression.
Actually the 4690946 was a test bug because tab area's background
can be controlled separately using "TabbedPane.tabAreaBackground"
property.
Presence of "TabbedPane.tabAreaBackground" depends on L&F. Test
of the 4690946 is fixed to take this into account.
Also inappropriate design chosen for the 8007563 reg test code
affected test results stability. It also has been fixed.
--Semyon
--
Best regards, Sergey.
--
Best regards, Sergey.