I am faced with the following problem:
I have a JCheckbox, with an associated JComboBox. (Well, its only associated in the fact that it sits next to each other horizontally on the tab, & also, the naming convention is that the first couple of characters of their names are always the same, indicating they belong together). I have listeners on these types of components, to do some stuff when it changes.
Now, these types of elements, can appear in a tabbed pane (on the different tabs). Checkboxes, may appear without Comboboxes, but a combobox cannot appear without a Checkbox associate.
At the moment, I am interested in constructing a log string, like this: (Name of Tabbed Panel)>(Name of JPanel)>(Name of Checkbox)>(Name of Combobox)
--> Of course I would stop at the Checkbox name, if the combobox is not changed, BUT if the Combobox changed, I would like to associate it with its Checkbox. Of course all this happens in the action event handler of the two components... Also, I already get the name of the tabbed panel, the jpanel and checkbox.
The question here is about somehow binding a combobox with a checkbox, in order to get checkbox info, when the combobox changed.
I hope this is clear, please ask if there is anything that needs clarification