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: 1.4.x does not report proper window size after packing



Sorry, I now see what you mean by callback there, stupid me. Still though, addNotify doesn't buy much. So I guess a bugfix would be to make a JFrame that overrides reshape(...) (yes, the deprecated method -- everything goes to reshape, argh) to say something like this:

public void reshape(int x, int y, int w, int h)
	{
	if (w < 128) w = 128;
	if (h < 37) h = 37;  // apple's docs say 32, but not with resize box!
	super.reshape(x,y,w,h);
	}

yuck yuck yuck...

Sean

On Dec 31, 2004, at 12:25 PM, Sean Luke wrote:

On Dec 31, 2004, at 10:05 AM, Dmitry Markman wrote:

use addNotify callback to define real window size

Come again? addNotify isn't a callback; and how does this tell me the true window size at any rate? I'm missing something.


Sean


_______________________________________________ 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: 
 >1.4.x does not report proper window size after packing (From: Sean Luke <email@hidden>)
 >Re: 1.4.x does not report proper window size after packing (From: Dmitry Markman <email@hidden>)
 >Re: 1.4.x does not report proper window size after packing (From: Sean Luke <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.