You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Alexey A. Ivanov (JIRA)" <ji...@apache.org> on 2006/11/16 14:29:37 UTC

[jira] Created: (HARMONY-2212) [classlib][swing] Caret is positioned incorrectly with mouse in JTextField with RTL component orientation

[classlib][swing] Caret is positioned incorrectly with mouse in JTextField with RTL component orientation
---------------------------------------------------------------------------------------------------------

                 Key: HARMONY-2212
                 URL: http://issues.apache.org/jira/browse/HARMONY-2212
             Project: Harmony
          Issue Type: Bug
          Components: Classlib
            Reporter: Alexey A. Ivanov


When JTextField has component orientation set to RTL, one cannot position caret in the middle of text - it is always set to either start of text or its end.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (HARMONY-2212) [classlib][swing] Caret is positioned incorrectly with mouse in JTextField with RTL component orientation

Posted by "Alexey A. Ivanov (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-2212?page=all ]

Alexey A. Ivanov updated HARMONY-2212:
--------------------------------------

    Attachment: HTest2212.java

Simple application which demonstrates the problem.
Try to position caret in the middle of text - the caret goes to the end of text or to the start depending on where you click.

> [classlib][swing] Caret is positioned incorrectly with mouse in JTextField with RTL component orientation
> ---------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2212
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2212
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Alexey A. Ivanov
>         Attachments: HTest2212.java
>
>
> When JTextField has component orientation set to RTL, one cannot position caret in the middle of text - it is always set to either start of text or its end.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (HARMONY-2212) [classlib][swing] Caret is positioned incorrectly with mouse in JTextField with RTL component orientation

Posted by "Alexey A. Ivanov (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-2212?page=all ]

Alexey A. Ivanov updated HARMONY-2212:
--------------------------------------

    Attachment: H2212-PlainViewI18N.patch

The fix: It just removes the overridden version of PlainViewI18N.LineView.isAfter(), incorrect implementation of which caused the problem.

Also @Override annotation has been added where applicable.

> [classlib][swing] Caret is positioned incorrectly with mouse in JTextField with RTL component orientation
> ---------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2212
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2212
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Alexey A. Ivanov
>         Attachments: H2212-PlainViewI18N.patch, H2212-PlainViewI18N_LineViewTest.patch, HTest2212.java
>
>
> When JTextField has component orientation set to RTL, one cannot position caret in the middle of text - it is always set to either start of text or its end.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (HARMONY-2212) [classlib][swing] Caret is positioned incorrectly with mouse in JTextField with RTL component orientation

Posted by "Alexey A. Ivanov (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-2212?page=all ]

Alexey A. Ivanov updated HARMONY-2212:
--------------------------------------

    Attachment: H2212-swing.build.xml.patch

build.xml.patch removes PlainViewI18N_LineViewTest from the exclude list as well as PlainView_VisualPositionTest which also passes successfully.

> [classlib][swing] Caret is positioned incorrectly with mouse in JTextField with RTL component orientation
> ---------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2212
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2212
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Alexey A. Ivanov
>         Attachments: H2212-PlainViewI18N.patch, H2212-PlainViewI18N_LineViewTest.patch, H2212-swing.build.xml.patch, HTest2212.java
>
>
> When JTextField has component orientation set to RTL, one cannot position caret in the middle of text - it is always set to either start of text or its end.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (HARMONY-2212) [classlib][swing] Caret is positioned incorrectly with mouse in JTextField with RTL component orientation

Posted by "Alexey A. Ivanov (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-2212?page=all ]

Alexey A. Ivanov updated HARMONY-2212:
--------------------------------------

    Patch Info: [Patch Available]

> [classlib][swing] Caret is positioned incorrectly with mouse in JTextField with RTL component orientation
> ---------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2212
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2212
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Alexey A. Ivanov
>         Attachments: H2212-PlainViewI18N.patch, H2212-PlainViewI18N_LineViewTest.patch, H2212-swing.build.xml.patch, HTest2212.java
>
>
> When JTextField has component orientation set to RTL, one cannot position caret in the middle of text - it is always set to either start of text or its end.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (HARMONY-2212) [classlib][swing] Caret is positioned incorrectly with mouse in JTextField with RTL component orientation

Posted by "Alexey A. Ivanov (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-2212?page=all ]

Alexey A. Ivanov updated HARMONY-2212:
--------------------------------------

    Attachment: H2212-PlainViewI18N_LineViewTest.patch

Regression test for this problem.

> [classlib][swing] Caret is positioned incorrectly with mouse in JTextField with RTL component orientation
> ---------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2212
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2212
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Alexey A. Ivanov
>         Attachments: H2212-PlainViewI18N_LineViewTest.patch, HTest2212.java
>
>
> When JTextField has component orientation set to RTL, one cannot position caret in the middle of text - it is always set to either start of text or its end.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira