Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4999182

Renderer and Editor of swing must render text in same way for a given text

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Duplicate
    • Affects Version/s: 5.0
    • Fix Version/s: None
    • Component/s: client-libs
    • Labels:

      Description

      By default renderer and editor of a component must behave similarly and render text in the same order.

      If a text in which both arabic/hebrew and english is set on a component. The renderer puts the text in proper order taking into consideration the direction of the text. But when the same text is edited, the editor shows the text in different order. This confuses the user who tries to enter a text.

      In attached sample code the text -> "THE YEAR 1958 <hebrew characters>" is set.
      When this entry is edited, the text shown on editor is "<hebrew characters> THE YEAR 1958".

      The same is noted for editable-combobox. When an entry is selected and its displayed the text changes its direction.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              peytoia Yuka Kamiya (Inactive)
              Reporter:
              rmenonsunw Rakesh Menon (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: