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

JTextArea: an extra space is added at the end of line of loaded text on Windows

    XMLWordPrintable

    Details

    • Subcomponent:
      2d
    • CPU:
      x86
    • OS:
      windows_nt

      Description


      Testing with Merlin beta3 b83 on Winodws, the problem that an extra space is displayed at the end of line of loaded text by opening a file on JTextArea is found.

      I tested on Windows 98, NT, ME and 2000 and it is reproducible on all machines.

      This is reproducible also with Merlin beta-refresh.
      This is not reproducible with Ladybird.


      To reproduce,

      1. Compile attached program, JTextAreaTest.java and UIManager.java
      2. Launch JTextAreaTest on Windows.
      3. Select File->Open and open an attached text file, Notpad-text.txt.
      Then, you can see an extra space is dispalyed to at the end of line of loaded text except the last line.

      If you put a cursol at the position after the extra space(, that is, at the end of line) and press "BackSpace" to erace the space, it can not be eraced and it remains left and the last character is eraced.

      If you put a cursol at the position after the extra space(, that is, at the end of line) and input a character, the character is displayed at the position before the space and follows the last character of the line.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              dougfelt Doug Felt
              Reporter:
              mmtokunasunw Mtokunaga Mtokunaga (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: