<AWT Dev> [9] Review request for 8025130: [macosx] Frame setLocationByPlatform has no effect under Mac OS X

dmitry markov dmitry.markov at oracle.com
Thu Jun 2 08:18:34 UTC 2016


Could you review a fix for jdk9, please?

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

Problem description:
Invocation of setLocationByPlatform() has no effect under Mac OS X, 
(i.e. the feature is not fully implemented for this platform).

Introduce new method nativeSetNSWindowLocationByPlatform(). It moves a 
window to 'default location' calculated by platform using 
cascadeTopLeftFromPoint function from NSWindow.
Add check of locationByPlatform flag to CPlatformWindow.setVisible(). If 
the flag is set, a window will be moved to 'default location'.


More information about the awt-dev mailing list