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: Specifying per-window client properties



How does one specify a "per-window client property" on a JRootPane, as per the experimental feature of J2SE 6.0 DP5? A setter method? A resource bundle?

To set an "example.isFooBar" client property on a JFrame to a boolean value, you would use the following:


JFrame frame = new JFrame("some window");
frame.getRootPane().putClientProperty("example.isFooBar", Boolean.TRUE);

And just as a gentle reminder, please do not discuss the Java developer previews in public forums (such as this one, or on your blog).

Thanks,
Mike Swingler
Java Frameworks Engineer
Apple Computer
_______________________________________________
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: 
 >Specifying per-window client properties (From: Simon Raboczi <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.