Not Recommended Documentclose button

Important: The information in this document is Not Recommended and should not be used for new development.

Current information on this Reference Library topic can be found here:

Version: 1.3

Posted: 2005-02-28

Build Requirements: N/A

Runtime Requirements: Java 1.4.2

View Source Code:

Download Sample (“SwapLAF.zip”, 60.0K)
Download Sample (“SwapLAF.dmg”, 118.2K)



Description

This package contains source code and project files for an example of how to change the look-and-feel for a Swing application among the various PLAF's available on the system. Note that runtime changing of a Java application's Look-And-Feel is not recommended by Sun. This sample is intended to illustrate how to set a look-and-feel on your application, which typically should be done once during initialization. The simplest way of doing this is using swing.properties as illustrated in Technical Q&A 1059. This sample is intended for Java development on Mac OS X.

Document Revision History

Date Notes
2005-02-28Updated project for Xcode/Panther compatibility, new disclaimer.
2003-01-14How to set the look-and-feel in your Swing application at runtime.

Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.