<Swing Dev> [10] RFR JDK-8187957:Tab Size does not work correctly in JTextArea

Prasanta Sadhukhan prasanta.sadhukhan at oracle.com
Wed Nov 8 11:25:57 UTC 2017


Hi All,

Bug: https://bugs.openjdk.java.net/browse/JDK-8187957
webrev: http://cr.openjdk.java.net/~psadhukhan/8187957/webrev.00/

Please review a fix for an issue where it is seen string with "tab" in 
them are not aligned properly.
This is because while calculating tab stop postion, it is calculating 
number of tabs in float value (an aftereffect of JDK-8156217 
<https://bugs.openjdk.java.net/browse/JDK-8156217>)
so next tab stop location is coming out wrong.
Fix is to use "number of tabs" as an integer value in order to calculate 
the tab position correctly.

Regards
Prasanta
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/swing-dev/attachments/20171108/5c13696b/attachment.html>


More information about the swing-dev mailing list