|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectui.table.RowCountListener
public class RowCountListener
This class provides a simple listener to a JTable. The listener will monitor for changes to the total number of rows in a given JTable and then update the given RowCountLabel object.
| Constructor Summary | |
|---|---|
RowCountListener(javax.swing.JTable table,
RowCountLabel label)
Creates a new RowCountListener object with the given JTable and JLabel objects. |
|
| Method Summary | |
|---|---|
void |
tableChanged(javax.swing.event.TableModelEvent e)
Called when changes to the total number of rows are encountered. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RowCountListener(javax.swing.JTable table,
RowCountLabel label)
table - The JTable to monitor for changes to the total number of rows.label - The RowCountLabel object to report table changes to.| Method Detail |
|---|
public void tableChanged(javax.swing.event.TableModelEvent e)
tableChanged in interface javax.swing.event.TableModelListenere - The event that triggers this method.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||