Example usage for javax.swing ComboBoxModel addListDataListener

List of usage examples for javax.swing ComboBoxModel addListDataListener

Introduction

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

Prototype

void addListDataListener(ListDataListener l);

Source Link

Document

Adds a listener to the list that's notified each time a change to the data model occurs.

Usage

From source file:edu.ku.brc.af.ui.forms.validation.ValComboBox.java

/**
 * @param model/*  w ww  .j a va  2s .c  o m*/
 */
public void setModel(final ComboBoxModel model) {
    comboBox.setModel(model);
    model.addListDataListener(this);
}