Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: forceSafeCreation again




On 29 Mar 2006, at 18:36, Bill Tschumy wrote:

Once again I seem to have the need to create a window offscreen and

System.setProperty ( "apple.awt.window.position.forceSafeProgrammaticPositioning", "false");
System.setProperty( "apple.awt.window.position.forceSafeCreation", "false");


Don't seem to work in either 1.4 or 1.5. I also have them set in my Info.plist file.

Here's what I'm trying to do.  Maybe someone knows another solution.

I am populating a JFrame with various components that I want to print. However, it seem that without actually showing the JFrame, I can't get the layout manager to lay the components out. I've tried various combinations of invalidate(), validate() and doLayout () on the JFrame or on the top level container but the components are only laid out if the window is showing.

So to print this I seem need to make the window visible but offscreen. But the forceSave... properties don't work.

Any thoughts?

I'm successfully creating JFrames offscreen in 1.4.2 without trying to set either property. I move 'em to -10000, -10000.


Jerry

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden
References: 
 >forceSafeCreation again (From: Bill Tschumy <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.