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

Tabs in JTextArea with line wrapping are rendered with fixed length

    XMLWordPrintable

    Details

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              alitvinov Anton Litvinov
              Reporter:
              shadowbug Shadow Bug
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: