<Swing Dev> [9] Review Request for 8078269: JTabbedPane UI Property TabbedPane.tabAreaBackground no longer works
Alexander Scherbatiy
alexandr.scherbatiy at oracle.com
Tue Jun 9 15:07:17 UTC 2015
The fix looks good to me.
Thanks,
Alexandr.
On 6/9/2015 5:44 PM, Sergey Bylokhov wrote:
> On 09.06.15 9:41, Semyon Sadetsky wrote:
>>
>> On 6/8/2015 8:33 PM, Sergey Bylokhov wrote:
>>> On 08.06.15 20:29, Sergey Bylokhov wrote:
>>>> 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.
>>> Or it should not? Will our components survive null background color?
>>> I guess we should check how UIResource usually check a null value.
>> Not 100% sure that component background is allowed to be null, but if
>> it is then it was set by user and we should use user's preference as
>> we discuses offline.
> ok. looks fine.
>>
>> --Semyon
>>
>>>>>
>>>>> --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.
>>>
>>>
>>> --
>>> Best regards, Sergey.
>>
>
>
> --
> Best regards, Sergey.
More information about the swing-dev
mailing list