Substance client properties

View all API methods.

View all client properties.

Client property name



Client property name for specifying that a single button / all application buttons should never paint the background. This property can be set as a client property on a specific button, its parent or as a global setting on UIManager. The value should be either Boolean.TRUE or Boolean.FALSE. Note that unlike the FLAT_PROPERTY, a button marked with this property will never show the background (will always be painted flat).

See also

Sample code

import java.awt.FlowLayout;

import javax.swing.*;

import org.pushingpixels.substance.api.SubstanceLookAndFeel;

 * Test application that shows the use of the
 {@link SubstanceLookAndFeel#BUTTON_PAINT_NEVER_PROPERTY} client property.
 @author Kirill Grouchnikov
public class ButtonPaintNeverProperty extends JFrame {
   * Creates the main frame for <code>this</code> sample.
  public ButtonPaintNeverProperty() {
    super("Middle button never paints background");

    this.setLayout(new FlowLayout());

    JButton buttonA = new JButton("a");
    JButton buttonB = new JButton("b");
    // Mark button to never paint its background
        SubstanceLookAndFeel.BUTTON_PAINT_NEVER_PROPERTY, Boolean.TRUE);
    JButton buttonC = new JButton("c");



   * The main method for <code>this</code> sample. The arguments are ignored.
   @param args
   *            Ignored.
  public static void main(String[] args) {
    SwingUtilities.invokeLater(new Runnable() {
      public void run() {
        SubstanceLookAndFeel.setSkin(new BusinessBlackSteelSkin());
        new ButtonPaintNeverProperty().setVisible(true);

The screenshot below shows the application frame in which the middle button has been marked with this property set to Boolean.TRUE.