|
|
I have used the NetBeans 6.5 Java Desktop Database application generator to create a CRUD application for my main database table. I only put the first few fields into the table, and am adding additional fields below, binding them as text to the corresponding database fields following the directions I found in one of the tutorials. But I also have 'reference' tables, which list the allowed values for certain fields. Another tutorial describes how to bind a combo box to a reference table, and that works nicely (bind elements, selectedElement, and add a custom cell renderer).
But what I really need is to do both, to use the reference table to populate the allowed values displayed by the combo box, and bind the contents of the combo box with the field in the database table.
Is there any way I can accomplish this?