Example usage for javax.swing SingleSelectionModel addChangeListener

List of usage examples for javax.swing SingleSelectionModel addChangeListener

Introduction

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

Prototype

void addChangeListener(ChangeListener listener);

Source Link

Document

Adds listener as a listener to changes in the model.

Usage

From source file:org.wings.STabbedPane.java

/**
 * Sets the model to be used with this tabbedpane.
 * @param model the model to be used//w w  w . j av  a  2  s .  c o  m
 *
 * @see #getModel
 */
public void setModel(SingleSelectionModel model) {
    this.model = model;
    model.addChangeListener(this);
}