Skip to content

Instantly share code, notes, and snippets.

@beydogan
Created June 11, 2013 11:57
Show Gist options
  • Save beydogan/5756293 to your computer and use it in GitHub Desktop.
Save beydogan/5756293 to your computer and use it in GitHub Desktop.
private void deleteRouteBtnActionPerformed(java.awt.event.ActionEvent evt) {
int row = routeListTable.getSelectedRow();
if(row != -1){
String routeId = routeListTable.getValueAt(row, 0).toString();
deleteRoute(Integer.parseInt(routeId));
loadRoutes();
}else{
JOptionPane.showMessageDialog(null, "You Must Select A Row To Delete");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment