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

TextArea.select(0,0) does not de-select the selected text properly, on sol-XTkt

XMLWordPrintable

    • b43
    • sparc
    • solaris_9
    • Verified

      I am calling TextArea.selectAll() in my app to select the text given in the text area and then calling TextArea.select(0, 0) to de-select the previously selected text. When running the app on Solaris 9/10 with XToolkit, the de-select operation is not proper in the sense that it deselects only the first character in the text area and rest of the text are made completely dark. This operation hides the entire text with a solid black rectangle.

      This is reproducible only on Solaris9/10 with XToolkit. This is not reproducible on Linux and win32. This is not reproducible on Motif.

      I have attached a sample test. Execute the test on SolarisSparc with XToolkit. Do not click anything and just watch the app. A frame with a text area would appear. After a couple of seconds, the entire text except the first char would appear black. This is reproducible on CDE as well as GNOME.

      ###@###.### 2004-09-21

      ###@###.### 2004-09-22

            dcherepanov Dmitry Cherepanov
            pmohansunw Praveen Mohan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: