On Mon, 5 Dec 2022 04:11:16 GMT, Prasanta Sadhukhan <psadhuk...@openjdk.org> 
wrote:

>> test/jdk/java/awt/Mouse/EnterExitEvents/DragWindowTest.java line 58:
>> 
>>> 56: 
>>> 57:         Robot robot = new Robot();
>>> 58:         robot.setAutoDelay(250);
>> 
>> We normally do not need so much delay for test to work, 100ms being the norm 
>> which has sufficed for other tests.
>> Maybe you need to wait robot.delay after creating and showing the GUI which 
>> is not done here.
>> Also, this test has heavyweight and lightweight mix, for ex. MyDragWindow 
>> class uses JPanel but not in EDT which can result in some timing issue you 
>> are seeing, either it needs to be in EDT or can it be changed to AWT Panel 
>> as done elsewhere in the test?
>> 
>> ALso, please change the wildcards imports while you are at it..
>
> JPanel question is still unanswered/unchanged...

If I change the JPanel in MyDragWindow to awt Panel, the test fails

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

PR: https://git.openjdk.org/jdk/pull/11425

Reply via email to