How to set the Radio Button based on the value fetched from the database
I have a JTable filled with data about students (student id, name...), and when I select a row from a table, the form opens and its field need to be filled with same values (eg. if Johny Bravo was selected from the table. Then his name should be shown in text filed Name on the form, I did like this txtfieldName.setText(student.getName). My question is how do I set my Radio button automatically (my radio button is Male or Female) when I clicked the field. enter code here tableGuest.addMouseListener(new MouseAdapter() { public void mouseClicked(MouseEvent e) { try{ int row = tableGuest.getSelect
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.