New Mariner skin for Swing applications

July 12th, 2010 | 7 Comments »

In addition to providing platform-specific key bindings, bug fixing and better integration with the Flamingo component suite, Substance 6.1 (code-named Trinidad) will introduce a new skin named Mariner. To use the new skin in your application, you have the following options:

  • -Dswing.defaultlaf=org.pushingpixels.substance.api.skin.SubstanceMarinerLookAndFeel
  • UIManager.setLookAndFeel(new SubstanceMarinerLookAndFeel())
  • UIManager.setLookAndFeel(“org.pushingpixels.substance.api.skin.SubstanceMarinerLookAndFeel”)
  • SubstanceLookAndFeel.setSkin(new MarinerSkin())

Here are a few screenshots of Mariner in action. A few basic controls, along with a decorated title pane, a menu bar and a toolbar:

https://substance.dev.java.net/release-info/6.1/mariner1.png

A tree and a list with a few selected items

https://substance.dev.java.net/release-info/6.1/mariner2.png

Comboboxes:

https://substance.dev.java.net/release-info/6.1/mariner-combos.png

Text fields:

https://substance.dev.java.net/release-info/6.1/mariner-textfields.png

Sliders:

https://substance.dev.java.net/release-info/6.1/mariner-sliders.png

Ribbon:

https://substance.dev.java.net/release-info/6.1/mariner-ribbon.png

A larger UI with a more controls (tabs, scroll bars, status bar and task pane container from SwingX):

https://substance.dev.java.net/release-info/6.1/mariner-overview.png

If you want to test the new Mariner skin in your application, you’re more than welcome to take the latest 6.1dev drop of Substance code-named Trinidad for a ride and let me know if you run into any exceptions, visual artifacts or anything else.


Mariner, on the ribbon

July 11th, 2010 | 2 Comments »

https://substance.dev.java.net/release-info/6.1/mariner-ribbon.png


Spot the differences – answers

June 27th, 2010 | Comments Off

The original:

https://substance.dev.java.net/release-info/6.1/office-black-2007-orig.png

The latest:

https://substance.dev.java.net/release-info/6.1/office-black-2007-1.png

The differences:

  1. Fixed “dead” pixel in the bottom right corner of the ribbon band title (to the right of “Clipboard” / “Quick Styles”).
  2. Using dark color for the separator painted along the bottom edge of the title pane.
  3. Consistent Y coordinate of the gloss line between the title pane and the taskbar panel (to the right of the round application menu button).
  4. Fixed “ghost area” in the top-left wedge of the taskbar panel .

New Office Black 2007 skin in Substance 6.1

June 27th, 2010 | 1 Comment »

The latest 6.1dev drop of Substance look-and-feel library (code named Trinidad) completes the collection of skins that can be used on the Flamingo ribbon component by adding Office Black 2007 skin to the existing Office Silver 2007 and Office Blue 2007 skins. Here is how the ribbon looks under Office Black 2007 skin:

https://substance.dev.java.net/release-info/6.1/office-black-2007-1.png

This skin lives (as all others) in the org.pushingpixels.substance.api.skin and can be used with the following:

  • SubstanceLookAndFeel.setSkin(new OfficeBlack2007Skin())
  • SubstanceLookAndFeel.setSkin(“org.pushingpixels.substance.api.
    skin.OfficeBlack2007Skin”)
  • -Dswing.defaultlaf=org.pushingpixels.substance.api.
    skin.SubstanceOfficeBlack2007LookAndFeel
  • UIManager.setLookAndFeel(new SubstanceOfficeBlack2007LookAndFeel())
  • UIManager.setLookAndFeel(“org.pushingpixels.substance.api.
    skin.SubstanceOfficeBlack2007LookAndFeel”);

As with the existing Office skins, the new skin is exclusively targeting the ribbon component. Its usage on the core Swing components is not recommended. The next major Substance release will move all three Office skins to the Substance Flamingo plugin.

If you want to test the new Office Black 2007 skin in your ribbon, you will need the following: