<Swing Dev>  RFR JDK-8187957:Tab Size does not work correctly in JTextArea
semyon.sadetsky at oracle.com
Wed Nov 8 17:23:45 UTC 2017
It seems to me that the result of the sentence should be truncated to
int, not its members.
The test can be automated.
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
> 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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the swing-dev