RFR: 8282640: Create a test for JDK-4740761 [v2]

Phil Race prr at openjdk.java.net
Thu Mar 24 03:32:48 UTC 2022


On Fri, 11 Mar 2022 14:44:25 GMT, Srinivas Mandalika <smandalika at openjdk.org> wrote:

>> Create a test for [JDK-4740761](https://bugs.openjdk.java.net/browse/JDK-4740761)
>> 
>> The issue observed is in a JFrame with a JTextField and a JScrollPane which contains focused component. When the JScrollPane was
>> is removed from its parent, focus stays with the the scroller
>> of the removed JScrollPane, instead of moving to the TextField.
>> 
>> The test verifies the same - i.e. it verifies that the removal of the scrollpane moves the focus to the JTextField present in the JFrame.
>> This review is for migrating tests from a closed test suite to open.
>
> Srinivas Mandalika has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Added @bug keyword

Marked as reviewed by prr (Reviewer).

test/jdk/java/awt/Focus/8282640/ScrollPaneFocusBugTest.java line 102:

> 100:         robot.mousePress(InputEvent.BUTTON1_DOWN_MASK);
> 101:         robot.mouseRelease(InputEvent.BUTTON1_DOWN_MASK);
> 102: 

I presume the click is in case requestFocus didn't work and VK_1 is .. well any key will do ..

-------------

PR: https://git.openjdk.java.net/jdk/pull/7686



More information about the client-libs-dev mailing list