Re: [13] RFR JDK-8212904:JTextArea line wrapping incorrect when using UI scale

2019-03-28 Thread Philip Race
Ok. +1 -phil. On 3/27/19, 10:01 PM, Prasanta Sadhukhan wrote: Nothing specific. It was there in reproducer test in JBS and also to make sure the test can be run in standalone mode and not only via jtreg. Regards Prasanta On 27-Mar-19 9:33 PM, Phil Race wrote: The product code change looks fin

Re: [13] RFR JDK-8212904:JTextArea line wrapping incorrect when using UI scale

2019-03-27 Thread Prasanta Sadhukhan
Nothing specific. It was there in reproducer test in JBS and also to make sure the test can be run in standalone mode and not only via jtreg. Regards Prasanta On 27-Mar-19 9:33 PM, Phil Race wrote: The product code change looks fine. I didn't examine the test super-closely but I am curious why

Re: [13] RFR JDK-8212904:JTextArea line wrapping incorrect when using UI scale

2019-03-27 Thread Sergey Bylokhov
Looks fine. On 26/03/2019 22:25, Prasanta Sadhukhan wrote: OK. Modified webrev http://cr.openjdk.java.net/~psadhukhan/8212904/webrev.2/ Regards Prasanta On 27-Mar-19 2:25 AM, Sergey Bylokhov wrote: Hi, Prasanta. The "textArea.getHeight()" should be called on EDT, since this is a swing compo

Re: [13] RFR JDK-8212904:JTextArea line wrapping incorrect when using UI scale

2019-03-27 Thread Phil Race
The product code change looks fine. I didn't examine the test super-closely but I am curious why you used System.setProperty("sun.java2d.uiScale", "1.25" ) instead of setting it on the command line ? -phil. On 3/26/19 10:25 PM, Prasanta Sadhukhan wrote: OK. Modified webrev http://cr.openjdk.j

Re: [13] RFR JDK-8212904:JTextArea line wrapping incorrect when using UI scale

2019-03-26 Thread Prasanta Sadhukhan
OK. Modified webrev http://cr.openjdk.java.net/~psadhukhan/8212904/webrev.2/ Regards Prasanta On 27-Mar-19 2:25 AM, Sergey Bylokhov wrote: Hi, Prasanta. The "textArea.getHeight()" should be called on EDT, since this is a swing component. On 25/03/2019 22:01, Prasanta Sadhukhan wrote: Thanks

Re: [13] RFR JDK-8212904:JTextArea line wrapping incorrect when using UI scale

2019-03-26 Thread Sergey Bylokhov
Hi, Prasanta. The "textArea.getHeight()" should be called on EDT, since this is a swing component. On 25/03/2019 22:01, Prasanta Sadhukhan wrote: Thanks Sergey for the pointer. Modified test to be automated in the webrev http://cr.openjdk.java.net/~psadhukhan/8212904/webrev.1/ Regards Prasan

Re: [13] RFR JDK-8212904:JTextArea line wrapping incorrect when using UI scale

2019-03-25 Thread Prasanta Sadhukhan
Thanks Sergey for the pointer. Modified test to be automated in the webrev http://cr.openjdk.java.net/~psadhukhan/8212904/webrev.1/ Regards Prasanta On 26-Mar-19 12:02 AM, Sergey Bylokhov wrote: On 25/03/2019 02:05, Prasanta Sadhukhan wrote: Thanks Sergey for the pointer. But horizontal scrollb

Re: [13] RFR JDK-8212904:JTextArea line wrapping incorrect when using UI scale

2019-03-25 Thread Sergey Bylokhov
On 25/03/2019 02:05, Prasanta Sadhukhan wrote: Thanks Sergey for the pointer. But horizontal scrollbar is not visible for both correct and broken wrap if scrollbar policy is set to HORIZONTAL_SCROLLBAR_AS_NEEDED. Also, the textArea.getHeight() is same for both textArea.setWrapStyleWord( true )

Re: [13] RFR JDK-8212904:JTextArea line wrapping incorrect when using UI scale

2019-03-25 Thread Prasanta Sadhukhan
On 23-Mar-19 5:02 AM, Sergey Bylokhov wrote: On 21/03/2019 22:34, Prasanta Sadhukhan wrote: Thanks for your review. textarea.getLineCount() returns same number for both correct and broken wrap so it cannot be used for test automation... Then probably it can be checked by the visibility of t

Re: [13] RFR JDK-8212904:JTextArea line wrapping incorrect when using UI scale

2019-03-22 Thread Sergey Bylokhov
On 21/03/2019 22:34, Prasanta Sadhukhan wrote: Thanks for your review. textarea.getLineCount() returns same number for both correct and broken wrap so it cannot be used for test automation... Then probably it can be checked by the visibility of the horizontal scroll bar? If you set the scrollb

Re: [13] RFR JDK-8212904:JTextArea line wrapping incorrect when using UI scale

2019-03-21 Thread Prasanta Sadhukhan
Hi Sergey, Thanks for your review. textarea.getLineCount() returns same number for both correct and broken wrap so it cannot be used for test automation... Regards Prasanta On 21-Mar-19 4:24 AM, Sergey Bylokhov wrote: Hi, Prasanta. The change looks fine, but probably the test can be automate

Re: [13] RFR JDK-8212904:JTextArea line wrapping incorrect when using UI scale

2019-03-20 Thread Sergey Bylokhov
Hi, Prasanta. The change looks fine, but probably the test can be automated? I guess when "wrap" works properly you should get more lines in the text area, than in case of broken "wrap"? On 19/03/2019 00:03, Prasanta Sadhukhan wrote: Hi All, Please review a fix for an issue where it is seen t

[13] RFR JDK-8212904:JTextArea line wrapping incorrect when using UI scale

2019-03-19 Thread Prasanta Sadhukhan
Hi All, Please review a fix for an issue where it is seen that line wrapping of JTextArea doen't work correctly if you set wrapStyleWord = true and you use a UI scale (either by setting "sun.java2d.uiScale" or by setting display scale of Windows) It is a regression of JDK-8132119: Provide pub