-
Bug
-
Resolution: Duplicate
-
P3
-
None
-
11
-
windows
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.
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.
- duplicates
-
JDK-8239334 Tab Size does not work correctly in JTextArea with setLineWrap on
-
- Resolved
-