To use the Sea Glass Look and Feel, you must either include our
Maven repository in your
pom.xml
file or download the jar file and include it in your class path. See the
downloads page for more
details.
To enable the Sea Glass Look and Feel, include the following in your application before creating any controls:
try { UIManager.setLookAndFeel("com.seaglasslookandfeel.SeaGlassLookAndFeel"); } catch (Exception e) { e.printStackTrace(); }
We also support setting the user interface on the command line using the VM option
-Dswing.defaultlaf=com.seaglasslookandfeel.SeaGlassLookAndFeel
On non-Mac systems we draw our own title bar and window frame,
meaning that we set the window to "undecorated". This means that you
can't remove the title bar and frame by setting a
JFrame to undecorated. You should probably use a
JWindow instead, though you should be able to set
the window decoration style to JRootPane.NONE and get a
similar effect.
Also, we make JToolBar and
JPanel non-opaque using a call to
setOpaque(false) if the background color is an instance of
UIResource, which it will be unless you have set
it. We then paint our background gradient on the content pane, which is
a JPanel by default. If you want a different
background color, put your controls in a JPanel,
add that to the BorderLayout.CENTER of the content pane,
and set your JPanel's background color.
We also support many client properties to change the appearance or behavior of controls.