Mailing Lists: Apple Mailing Lists

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

Resizing windows without update



Unfortunately 

        Toolkit.getDefaultToolkit().setDynamicLayout(false); // or true

has no effect on the mac. The Java docs warns this might happen. 

        Toolkit.getDefaultToolkit().getDesktopProperty("awt.dynamicLayoutSupported");

returns true, but

    Toolkit.getDefaultToolkit().setDesktopProperty("awt.dynamicLayoutSupported", new Boolean(false));

generates the compile error setDesktopProperty(String, Object) has protected access in java.awt.Toolkit

Maybe there is a property list entry which must be set in XCode when bundling to a Mac OS X app. But how to find it??  It's not in the Apple Document  Java14Development.pdf

Brian Davies


Date: Mon, 15 Aug 2005 10:57:52 -0700
From: Greg Guerin <email@hidden>
Subject: Re: Resizing windows without update
To: email@hidden
Message-ID: <l03130302bf26864eb07c@[216.190.249.141]>
Content-Type: text/plain; charset="us-ascii"

Brian Davies wrote:


There is (was?) a way for a Java app to tell the system NOT to send update
events while a window is actually being resized. It's important if windows
resizing causes a lot of computation.

If it's still possible to set a property for this, I haven't been able to
find it in the Java14development document. Any clue would be appreciated.


<http://java.sun.com/j2se/1.4.2/docs/api/java/awt/Toolkit.html#setDynamicLayout(boolean)>

Brian Davies

Mathematical Sciences Institute

Australian National University

Canberra ACT 0200

Australia

tel: (02)6125-2915

http://www.maths.anu.edu.au/~briand


 _______________________________________________
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



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.