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

Tabs in JTextArea with line wrapping are rendered with fixed length

XMLWordPrintable

      ADDITIONAL OS VERSION INFORMATION :
      MS Windows 10 OS

      A DESCRIPTION OF THE PROBLEM :
      Tabs in "javax.swing.JTextArea" component with the enabled line-wrapping are rendered with fixed length instead of using tab stops.

      Remark from the user:
      The issue can be reproduced with JDK 11 but cannot be reproduced with JDK 17, JDK 8.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      1. Compile and run the attached to this bug test case "TabSizeInTextAreaTest.java".
      2. The issue is reproduced, if in the second text area, which is the text area with enabled line-wrapping, positions of numbers in the second text line are not aligned with positions of the same numbers in the first line.

            alitvinov Anton Litvinov (Inactive)
            shadowbug Shadow Bug
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: