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: Another change in Jaguar



Lars Ohrngren <email@hidden> wrote:

> //this used to work in 10.1 and works in other JVM-s
> panel.add(Box.createVerticalStrut(Short.MAX_VALUE));
>
> //however this works
> //panel.add(Box.createVerticalStrut(Short.MAX_VALUE / 10));

Short.MAX_VALUE is 32767. Why a strut that large?

I wonder if the first one not working is related to the max bounds of
screen graphics, which is basically +/-32K in Carbon. This wouldn't
explain why it worked in 10.1, unless as part of 10.2's improvements and
speed-ups some boundary-checking code got removed in some library or OS
component. This might have happened in some non-Java library that Java
happens to use.

-- GG
_______________________________________________
java-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/java-dev
Be sure to read the FAQ http://developer.apple.com/java/faq/ before posting
Do not post admin requests to the list. They will be ignored.



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.