public class LabelAdapter extends Object implements ChangeListener
| Constructor and Description |
|---|
LabelAdapter(ValueModel<?> pValueModel,
JLabel pLabel)
Creates a new adapter between a ValueModel and a JLabel.
|
| Modifier and Type | Method and Description |
|---|---|
void |
stateChanged(ChangeEvent pEvent)
Invoked during construction or when the value model changed its state.
|
public LabelAdapter(ValueModel<?> pValueModel, JLabel pLabel)
pValueModel - the value model, must not be nullpLabel - the label, must not be nullpublic void stateChanged(ChangeEvent pEvent)
stateChanged in interface ChangeListenerpEvent - not usedCopyright © 2017 Jürgen Zeller (privat). All rights reserved.