Selectively overriding Apple's Aqua Look and Feel

Using the methods QuaquaManager.setIncludedUIs() and .setExcludedUIs() you can selectively override Apple's Aqua Look and Feel.

How to include only the necessary UI's for ColorChooser and FileChooser:

 


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

         // Only override the UI's necessary for ColorChooser and
         // FileChooser:
         Set includes = new HashSet();
         includes.add("ColorChooser");
         includes.add("FileChooser");
         includes.add("Component");
         includes.add("Browser");
         includes.add("Tree");
         includes.add("SplitPane");
         QuaquaManager.setIncludedUIs(includes);

         // 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
         ...
     }
}