<AWT Dev> Review request for 7142120: [macosx] Some JCK tests for SplashScreen fail on Mac OS X due to incorrect positioning of the splash
anthony.petrov at oracle.com
Mon Feb 6 04:40:13 PST 2012
Thanks for the review. Here's an updated fix:
On 2/4/2012 3:12 AM, Mike Swingler wrote:
> On Feb 3, 2012, at 5:22 AM, Anthony Petrov wrote:
>> Please review a fix for http://bugs.sun.com/view_bug.do?bug_id=7142120 at:
>> The fix is fairly simple: use NSScreen -frame instead of -visibleFrame. In this case the splash screen is positioned in the geometrical center of the screen. Visually this looks less pleasant (we may want to file an RFE in the future), but makes tests happy which is what we need right now.
>> All the failing tests now pass well with this fix applied.
> Also [NSScreen mainScreen] gives you the screen that the "main" (aka "active") window is on. You really should use the 0'th screen to get the "primary" screen with the menu bar and the Dock.
> Mike Swingler
> Apple Inc.
More information about the macosx-port-dev