Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- String id = (String) cbName.getSelectedItem();
- String strid = id.replaceAll("\\D+", ""); //remove all chars excep number
- //set id for action delet and update
- etIdStudentUpdate.setText(strid);
- etIdStudentDelete.setText(strid);
- //show data by id
- DatabaseFunctions df = new DatabaseFunctions();
- df.getConnection();
- df.showDataByID(etNameUpdate, etMajorsUpdate, strid);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement