It seems from your explanation that, in windows 10(& mac) the text
selection is "not" cleared in 1st window if another text is selected in
2nd window BUT 1st window text selection is in "inactive" color(greyed)
whereas 2nd window's text selection is in "active" color (bold black) as
2nd window has focus.
But, in windows 7, both text selection in both window is in "active"
color. Did you check in any native app whether the behaviour is same in
windows 7 that 1st text remains active (but not cleared) even after 2nd
window text is selected. If not, then probably there is a product bug in
java for windows 7!!
Also, how native app behaves in windows 10?same as in java?
Regards
Prasanta
On 17-Jun-19 3:51 PM, Tejpal Rebari wrote:
Hi All,
Please review a test-fix for JDK-8194048 where the test fails on
windows 7 because, when selection ownership goes to second window the
selection is still shown in first window.
In Windows and Mac platform when some text field is selected on second
Window, the selected text in first Window remains selected, while
clears in Linux Platform.
In Windows 10 and Mac the screenshot image of text field on first
window after the some text is selected on second window, differ from
the screenshot image of the same text field initially when there was
only one window and the text field was selected ,(It differ in terms
of colour) but it remains same in Windows 7. That's why the test is
failing only on Windows 7.
Proposed solution is to check that the selected text field in first
window should be shown selected after some text field is selected on
second window *in windows 7,*
while it should not be shown selected in other platform.
Bug: https://bugs.openjdk.java.net/browse/JDK-8194048
webrev : http://cr.openjdk.java.net/~pkbalakr/Tejpal/8194048/webrev0/
<http://cr.openjdk.java.net/%7Epkbalakr/Tejpal/8194048/webrev0/>
Thanks and regards
Tejpal