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: Meta mouse-click revisited...



22 jun 2005 kl. 20.00 skrev Scott Palmer:

No problem... I had this workaround from another related incident (I'm normally not that fast).

There were a few add's without getContentPane. One of those mistakes that will build without any warnings but throw exceptions at runtime (still trying to figure out why they did that...)



I thought in Java 5 that an 'add' to a JFrame is automatically directed to the content pane. Am I wrong?

No, you are right, but you shouldnt be relying on that for your Mac targeting code for quite some time. Since Tiger didnt ship with Java 5 as the default JRE it will be a while before it is worth the support pain to assume that things like that work.

Most (or at least a large number of) users will be running 1.4.2
and wont see your components if you fail to go the getContentPane
route.

    /// Isak Styf

_______________________________________________
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: 
 >Meta mouse-click revisited... (From: Stephen Winnall <email@hidden>)
 >Re: Meta mouse-click revisited... (From: Stephen Winnall <email@hidden>)
 >Re: Meta mouse-click revisited... (From: Matt Drance <email@hidden>)
 >Re: Meta mouse-click revisited... (From: Stephen Winnall <email@hidden>)
 >Re: Meta mouse-click revisited... (From: Matt Drance <email@hidden>)
 >Re: Meta mouse-click revisited... (From: Scott Palmer <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.