On Mon, 14 Apr 2025 14:40:46 GMT, Alexey Ivanov <[email protected]> wrote:
>> This test was designed to manually verify that clicking on the JComboBox
>> when the frame containing it is about to close does not cause an
>> IllegalStateException.
>>
>> The test allowed the tester extra time to click on the JComboBox when
>> closing the frame by adding a Thread.sleep() in the close button handler.
>>
>> In this test, a JComboBox is displayed with a Close button at the bottom.
>> The tester should click the Close button, then try to click the JComboBox
>> arrow button to display the popup.
>>
>> In the automated test, we save the JComboBox location size before closing
>> the frame. We then use this information to click on the JComboBox right
>> before the frame is closed.
>
> test/jdk/javax/swing/JComboBox/ComboPopupBug.java line 51:
>
>> 49:
>> 50: public static void main(String[] args) throws Exception {
>> 51: robot = JRobot.getRobot();
>
> You don't use any of `JRobot` features, just use the `Robot` class: `new
> Robot()`.
Thank you for your review @aivanov-jdk
But I use the clickMouse() method! If I do that, I’ll need to replace it with
something else.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/24624#discussion_r2042328630