<Swing Dev> code review request: 7049024: DnD fails with JTextArea and JTextField
Pavel Porvatov
pavel.porvatov at oracle.com
Thu Oct 27 13:26:16 UTC 2011
Hi Sean,
> Hi Pavel,
>
> Is there any update ? We are told to use this kind of copyright
> for new files, I think there
> should be some published agreements about it.
Unfortunately there are no news yet. Do you have some special reasons to
keep IBM copyright there?
Regards, Pavel
>
> On Fri, Oct 14, 2011 at 5:30 PM, Pavel Porvatov
> <pavel.porvatov at oracle.com <mailto:pavel.porvatov at oracle.com>> wrote:
>
> Hi Sean,
>
> I saw your fix and it looks good. Now I'm discussing copyright
> details: if we can add IBM copyright or not...
>
> Regards, Pavel
>
>> Hi all,
>>
>> The case is about how to handle system selection when
>> DefaultCaret.moveDot is invoked.
>> In current implementation, the text component (like JTextField)
>> related to the DefaultCaret
>> instance will change the system selection because caret moves (as
>> perform a "select"
>> operation). However, there is an action in DnD that only the view
>> needs to be restored in a
>> selected status while the system selection should not be restored
>> because it is not a
>> "select" operation.
>>
>> The fix checks if the component related to the DefaultCaret
>> instance owns the focus,
>> if it does, the action is treated as user selection and update
>> "system selection"; else, the
>> action is thought to restore the visual status of the component
>> only and does not update
>> "system selection".
>>
>> And, there is a regression testcase in the patch as well. The
>> testcase is put in directory
>> JTextArea because the bug is reported to it.
>>
>> Webrev is here :
>> http://cr.openjdk.java.net/~ngmr/7049024/webrev.02/
>> <http://cr.openjdk.java.net/%7Engmr/7049024/webrev.02/>
>>
>> I have tested it on linux.
>> Windows is not affected by this bug and the regression
>> test case does not affect it as well.
>>
>> --
>> Best Regards,
>> Sean Chou
>>
>
>
>
>
> --
> Best Regards,
> Sean Chou
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/swing-dev/attachments/20111027/647570ba/attachment.html>
More information about the swing-dev
mailing list