Created
November 25, 2015 07:44
-
-
Save choiseungho/f0559bd65c27e01c36dc 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