<AWT Dev> Review request for 7035459: "java.lang.RuntimeException"

Prem Balakrishnan prem.balakrishnan at oracle.com
Mon Dec 28 05:38:22 UTC 2015


Please review fix for JDK9,


Bug: https://bugs.openjdk.java.net/browse/JDK-7035459 


Webrev: http://cr.openjdk.java.net/~arapte/prem/7035459/webrev.00/




Exception java.lang.RuntimeException: can not set focus on java.awt.Button[button0,0,0,115x23,label=button for focus]




Initial Robot action on clicking title bar of Owner frame was actually minimizing the window(also button associated with it). 

When trying to focus on the Button associated with this window, Exception was thrown



1.       The window width was increased from 200 to 300. (to ensure click on title bar was not clicking the minimize button).

2.       Listeners were added after performing Robot actions, because of which events were not handled properly,

        hence moved the addListeners code before performing Robot action.




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/awt-dev/attachments/20151227/a57a6b6e/attachment-0001.html>

More information about the awt-dev mailing list