Forked from choiseungho/PreventTwiceSelectionFromTable.java
Created
November 26, 2015 12:30
-
-
Save seungdols/9f4040099ddd3f68d78e to your computer and use it in GitHub Desktop.
Prevent Calling Twice ValueChanged Method From Table
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tableView.getSelectionModel().addListSelectionListener(new ListSelectionListener() { | |
@Override | |
public void valueChanged(ListSelectionEvent e) { | |
if (!e.getValueIsAdjusting()){ | |
System.out.println(tableView.getValueAt(tableView.getSelectedRow(), 0).toString()); | |
} | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment