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

Semyon Sadetsky semyon.sadetsky at oracle.com
Wed Nov 8 17:23:45 UTC 2017


Hi Prasanta,

It seems to me that the result of the sentence should be truncated to 
int, not its members.

The test can be automated.

--Semyon

On 11/08/2017 03:25 AM, Prasanta Sadhukhan wrote:
> 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/2fcd7ea2/attachment.html>


More information about the swing-dev mailing list