| CARVIEW |
|
liquidlnf
|
| Summary | LiquidLnF - Java Swing Look and Feel of Mosfet Liquid KDE 3.x |
|---|---|
| Categories | None |
| License | Lesser General Public License (LGPL) |
| Owner(s) | evickroy |
Liquid look & feel
The goal of this project is to provide a look and feel based on the Mosfet Liquid KDE 3.x theme.
To make LiquidLnF the current L&F;, add this line to the beginning of your main method:
UIManager.setLookAndFeel("com.birosoft.liquid.LiquidLookAndFeel");
OR use the following VM parameter when launching the application:
-Dswing.defaultlaf=com.birosoft.liquid.LiquidLookAndFeel
To make LiquidLnF the default L&F; for all Java applications, you will need to modify the swing.properties file in ../jre/lib.
Here is an example of that file:
swing.installedlafs = motif,windows,metal,mac,liquid
swing.installedlaf.motif.name = CDE/Motif
swing.installedlaf.motif.class = com.sun.java.swing.plaf.motif.MotifLookAndFeel
swing.installedlaf.windows.name = Windows
swing.installedlaf.windows.class = com.sun.java.swing.plaf.windows.WindowsLookAndFeel
swing.installedlaf.metal.name = Metal
swing.installedlaf.metal.class = javax.swing.plaf.metal.MetalLookAndFeel
swing.installedlaf.mac.name = Mac
swing.installedlaf.mac.class = com.sun.java.swing.plaf.mac.MacLookAndFeel
swing.installedlaf.liquid.name = Liquid
swing.installedlaf.liquid.class = com.birosoft.liquid.LiquidLookAndFeel
swing.defaultlaf=com.birosoft.liquid.LiquidLookAndFeel
Demos
- A demo of Liquid UI delegates.Screenshots
Below are sample screenshots of the SwingSet demo using the LiquidLnF.![]() |
![]() |
![]() |
Runnable
You can download the latest jar file here
Custom Properties
There are several custom properties that can set to alter the default Look of Liquid. Here is the list of the properties with their default setting in blue:
- Window Decorations - When on, all frames, dialogs, and internal frames will use custom decorations for their titlebar. Default is false.
- Sample when ON:
LiquidLookAndFeel.setLiquidDecorations(true);
- Sample when ON with "mac" style specified:
LiquidLookAndFeel.setLiquidDecorations(true, "mac");
- Sample when ON:
- Stipples - When on, little pin stripes, aka stipples, will be displayed as the background for all panels. Default is true.
- Sample when ON (Default):
- Sample when OFF:
LiquidLookAndFeel.setStipples(false);
- Show Table Grids - When on, all tables will show grid lines between rows and columns. Default is false.
- Sample when OFF (Default):
- Sample when ON:
LiquidLookAndFeel.setShowTableGrids(true);
- Alternate Row Background - When on, all multi-row components will show an alternating background color. Default is true.
- Sample when ON (Default):
- Sample when OFF:
LiquidLookAndFeel.setDefaultRowBackgroundMode(false);
NOTE: Turning this off automatically turns on showing table grids. If you don't want grids either, then see above for turning off table grids. - Use Flat Toolbar Buttons - When on, toolbar buttons will be flat unless the mouse is over the button. Default is true.
- Sample when ON (Default):
- Sample when OFF:
LiquidLookAndFeel.setToolbarFlattedButtons(false);
- Use Focusable Toolbar Buttons - When on, toolbar buttons will receive focus. Default is false.
- Sample when OFF (Default):
LiquidLookAndFeel.setToolbarButtonsFocusable(false);
- Sample when ON with Flat toolbar buttons:
- Sample when ON with Non Flat toolbar buttons:
- Sample when OFF (Default):
- Use Toolbar Buttons Rollover - When on, toolbar buttons will have the normal rollover effect when the mouse is over the button. Default is true.
- Sample when ON (Default):
- Sample when OFF:
LiquidLookAndFeel.setToolbarFlattedButtonsRollover(false);
- Auto Panel Transparency - When on, all panels will automatically be transparent. Any attempt change the opaque property of any panel will fail. When off, all panels will have normal behavior based on the value of the opaque property. Default is true.
| Powered by CollabNet | Feedback |
FAQ |
Press |
Developer tools
© 1995 - 2007 CollabNet. CollabNet is a registered trademark of CollabNet, Inc. |



