<AWT Dev> <AWT dev>[9] Review request for 8157163: AWT FileDialog does not inherit icon image from parent Frame

Semyon Sadetsky semyon.sadetsky at oracle.com
Mon May 23 17:31:01 UTC 2016


Hello,

Please review fix for JDK9:

bug: https://bugs.openjdk.java.net/browse/JDK-8157163
webrev: http://cr.openjdk.java.net/~ssadetsky/8157163/webrev.00/

The bug is about two issues:
1. The window icon is not inherited in case of the AWT file dialog has 
an owner window. Setting the icon was not implemented for the non-null 
owner.

2. Requesting screen location of the open file dialog window causes 
exception. The root cause is the basic implementation of the 
getLocationOnScreen() method uses native peer window which is not set in 
case of the file dialog. So the specific implementation is added in the 
file dialog peer.

--Semyon





More information about the awt-dev mailing list