<Swing Dev> [9] Review Request for 8079640: GroupLayout incorrect layout with large JTextArea

Semyon Sadetsky semyon.sadetsky at oracle.com
Mon May 18 14:56:15 UTC 2015


JDK-8080604 created.

On 5/18/2015 4:20 PM, Sergey Bylokhov wrote:
> Looks fine then.
> Please file a separate issue to update tutorial.
>
> On 18.05.15 15:19, Semyon Sadetsky wrote:
>> Sergey,
>>
>> I have dug into the SCCS history. This was set initially and was not 
>> related to any issues.
>>
>> --Semyon
>>
>>
>> On 5/8/2015 4:07 PM, Sergey Bylokhov wrote:
>>> Hi, Semyon.
>>> It will be good to dig into the history of GroupLayout and 
>>> understand why this was constrained, note that tutorial should be 
>>> updated also.
>>>
>>> On 08.05.15 11:47, Semyon Sadetsky wrote:
>>>> Hello,
>>>>
>>>> Please review fix for JDK9:
>>>>
>>>> bug: https://bugs.openjdk.java.net/browse/JDK-8079640
>>>> webrev: http://cr.openjdk.java.net/~ssadetsky/8079640/webrev.00/
>>>>
>>>> *THE ROOT CAUSE
>>>> Component minimum size is limited to Short.MAX_VALUE in GroupLayout.
>>>> JDK turtorial 
>>>> https://docs.oracle.com/javase/tutorial/uiswing/layout/group.html 
>>>> tells that Short.MAX_VALUE is treated as infinite.
>>>> But I did not find any reasons in JDK specs why a bigger number 
>>>> cannot be used.
>>>>
>>>> *SOLUTION
>>>> Remove the limitation
>>>>
>>>> *TESTING
>>>> Test is added to cover the large component scenario.
>>>> Existing GroupLayout tests are passed.
>>>>
>>>> --Semyon
>>>>
>>>
>>>
>>
>
>




More information about the swing-dev mailing list