Example usage for com.jgoodies.looks BorderStyle EMPTY

List of usage examples for com.jgoodies.looks BorderStyle EMPTY

Introduction

In this page you can find the example usage for com.jgoodies.looks BorderStyle EMPTY.

Prototype

BorderStyle EMPTY

To view the source code for com.jgoodies.looks BorderStyle EMPTY.

Click Source Link

Usage

From source file:com.salas.bb.views.mainframe.BBToolBarBuilder.java

License:Open Source License

/**
 * JGoodies specific setup./*ww  w  .  j ava 2  s.c o  m*/
 *
 * @param bldr builder.
 */
private void setToolBarJGoodiesSettings(ToolBarBuilder bldr) {
    JToolBar toolBar = bldr.getToolBar();

    toolBar.putClientProperty("JToolBar.isRollover", Boolean.TRUE);
    toolBar.putClientProperty(PlasticLookAndFeel.IS_3D_KEY, Boolean.TRUE);
    toolBar.putClientProperty(Options.HEADER_STYLE_KEY, HeaderStyle.SINGLE);

    // Set a hint so that JGoodies Looks will detect it as being in the header.
    //        toolBar.putClientProperty(Options.HEADER_STYLE_KEY, HeaderStyle.BOTH);

    // Unlike the default, use a separator border.
    toolBar.putClientProperty(WindowsLookAndFeel.BORDER_STYLE_KEY, BorderStyle.EMPTY);
    toolBar.putClientProperty(PlasticLookAndFeel.BORDER_STYLE_KEY, BorderStyle.EMPTY);
}