My task is to implement a JTable which one of it's column has this appearance:
it should contain 4 elements:
1. a JCombobox, which controls the enable status of the other two:
they are enabled for "manual" state, and locked on certain numerical values for the other states (let's call the other combo states: 'first', 'second', 'third').
2. a JTextField which, when enabled, controls the value of the slider.
3. a JLabel which reads "%" and does nothing.
4. s JSlider which, when enabled, controls the JTextField value (can this mutual control even exist?).
I crawled all over the web searching for ways to implement this. Most examples are too superficial including this similar question.
I had my share of Cell Rendering/fireEditingStopped etc. torment before I asked this, but have no simple short code to show unfortunately.
Can any one please show me specific guidelines or code snippet which can send me on the right path? Thanks in advance.
I'm not sure of the problem, but here is a simple example of retrieving the data from
TableCellRenderer
andTableCellEditor
.