Designs

The following table shows which Mac OS X designs are supported by the Quaqua Look and Feel:

 

Design

Mac OS X Release Quaqua support
Tiger 10.4, Apr 2005

supported

Known issues: JTabbedPanes with tab layout policy "wrap" will render with Jaguar design

Panther 10.3, Oct 2003

supported

Known issues: JTabbedPanes with tab layout policy "wrap" will render with Jaguar design

Jaguar 10.2, Aug 2002

supported

Known issues: JButtons will render with Panther design. JTabbedPanes with tab layout policy "scroll" will render with Panther design

Puma 10.1, Sep 2001 not supported
Cheetah 10.0, Mar 2001

not supported

The Quaqua Look and Feel automatically detects which design is in use by the operating system and chooses appropriate look and feel properties.

It is not recommended to use a different design than the one used by the underlying native operating systems.

For testing purposes you can explicitly specify a design using the system property Quaqua.design. Make sure you set this property before you create a QuaquaLookAndFeel instance. Quaqua.design supports the values listed above (in lower case) and the value "auto".

 

public class MyApplication {
     public static void main(String[] args) {

         // explicitly set the design to jaguar
         System.setProperty(
            "Quaqua.design","jaguar"

         );

         // set the Quaqua Look and Feel in the UIManager
         try {
              UIManager.setLookAndFeel(
                  "ch.randelshofer.quaqua.QuaquaLookAndFeel"
             
);
         // set UI manager properties here that affect Quaqua
         ...
         } catch (Exception e) {
             // take an appropriate action here
             ...
         }
         // insert your application initialization code here
         ...
     }
}