OK - coming along in my
Java education, and appreciate help I've received here! I have always been a "data centric application" programmer, and I'm really struggling trying to find tutorials on how to do simple (or what should be simple) binding of form controls to data in a ResultSet. Here's what I'm looking to do.
I can successfully retrieve data from my database (PostgreSQL), and store that result set on my form controller. My form is a simple data maintenance form - let's say an "Employee" form. I have text fields for first name, last name, and title. I know I can manually set the text of those text fields to equal the corresponding column (of the current row) in my ResultSet, however, got to be a better way right? What I want to do is BIND the value of each textfield to a column of the result set so that anytime I change the row of the result set, all the textfields automatically update, and so that if I type in a textfield, it auto-updates the corresponding row/column in the ResultSet. I'd have Next and Previous buttons on the form to move to the next/prev row and expect the form to refresh accordingly to display the current row's data.
To me - perhaps because of my background, this is the very most basic, "form 101" thing you can do in an application, so I'm surprised I can't find anything with a simple, straightforward tutorial on it? Please help!
THANKS!