Example usage for javax.swing DefaultSingleSelectionModel DefaultSingleSelectionModel

List of usage examples for javax.swing DefaultSingleSelectionModel DefaultSingleSelectionModel

Introduction

In this page you can find the example usage for javax.swing DefaultSingleSelectionModel DefaultSingleSelectionModel.

Prototype

DefaultSingleSelectionModel

Source Link

Usage

From source file:org.wings.STabbedPane.java

/**
 * Creates an empty TabbedPane with the specified tab placement
 * of either: TOP, BOTTOM, LEFT, or RIGHT.
 * @param tabPlacement the placement for the tabs relative to the content
 * @see #addTab//  ww  w  . j  a v a2 s. co m
 */
public STabbedPane(int tabPlacement) {
    super();

    setTabPlacement(tabPlacement);
    setBackground(new Color(204, 204, 204));
    setSelectionBackground(new Color(170, 170, 255));
    setFont(new SFont("Verdana,Arial,Helvetica,sans serif", SConstants.PLAIN, 10));

    super.addComponent(contents, null, 0);
    setModel(new DefaultSingleSelectionModel());
}