I have one tab that displays the list of users in a JTable that I have extracted from a database and another tab that displays JTextFields that want to edit the user details then save them to the database.
One of the unique feature of a user is a userID(Integer) that am able to get from the JTable depending on which row is selected.
Now I want use that userID and fill the JTextFields with data from the database to allow editing and hence save the new values below is the UI( can't post images)
Basically is how to share the Integer variable between the two tabs