Again I have stupid questions ...

As, for example, in Aktsessa: there is a combo box, it has its own data source, for example, select for two fields: name and identifier. The name is displayed, the identifier is not, but when you select a value, it ( id ) is stored in a certain field, thus making fk .

How to implement this in JAVA on JComboBox ? I honestly did not find that through DefaultComboBoxModel could transfer two columns to the combobox ...

    1 answer 1

    If you put objects there, then what will be returned to toString () will be displayed, but the object itself can be obtained from it via the getSelectedItem method

    • thank you, dig in this direction - Chupa