<AWT Dev> [8] Request for review: 7150100 [macosx] "0123456789" is selected in the TextField.
Sergey Bylokhov
Sergey.Bylokhov at oracle.com
Fri Sep 27 03:13:23 PDT 2013
Hello.
Please review the updated version of the fix for jdk 8.
The same problem was found and fixed in xawt as well.
http://cr.openjdk.java.net/~serb/7150100/webrev.01
On 09.04.2012 15:03, Artem Ananiev wrote:
> On 4/6/2012 8:25 PM, Sergey Bylokhov wrote:
>> 05.04.2012 14:53, Artem Ananiev написал:
>>> Hi, Sergey,
>>> it's not clear why this particular change fixes the selection. Could
>>> you add more comments to the bug evaluation, please?
>> comment added:
>> This happens because at the beginning of LWTextComponentPeer
>> initialization we select text and then we call
>> JTextComponent.setCaretPosition() which clears selection.
>
> Thanks. Approved.
>
> Artem
>
>>>
>>>> 2) On macosx we clear selection when the test component lost its
>>>> focus,
>>>> so test was simplified and instructions dialog was removed (because
>>>> sometimes it steal the focus from the text component)
>>>>
>>>> Bug: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7150100 **
>>>> Webrev can be found at:
>>>> http://cr.openjdk.java.net/~serb/7150100/webrev.00/
>>>>
>>>> --
>>>> Best regards, Sergey.
>>>>
>>
>>
>
--
Best regards, Sergey.
More information about the awt-dev
mailing list