Advertisement
Guest User

Untitled

a guest
Aug 21st, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. String id = (String) cbName.getSelectedItem();
  2. String strid = id.replaceAll("\\D+", ""); //remove all chars excep number
  3.  
  4. //set id for action delet and update
  5. etIdStudentUpdate.setText(strid);
  6. etIdStudentDelete.setText(strid);
  7.  
  8. //show data by id
  9. DatabaseFunctions df = new DatabaseFunctions();
  10. df.getConnection();
  11. df.showDataByID(etNameUpdate, etMajorsUpdate, strid);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement