I have created a dynamic UI using java.The UI contains variables and their values.The user can select the value for a variable from a JComboBox or enter the value in a JTextfield.
The variables and the values are fetched from Oracle Table.
The type of the values(that is whether the value is a JCombobox or a JTextfield) is also stored in the oracle table.Thus it is decided at runtime whether the type is a JTextField or a JComboBox.
Since the type of values(JTextField OR JCombobox) is decided dynamically, How do i save the values that the user enters?

Thanks and Regards