2 Swing Questions
Hi here is the scenario:
1. THere is a JTable.
2. The JTable has a column that is a JComboBox.
3. The JComboBox(es) when Dropped shows a JTextArea
To achieve the JComboBox in the column I had to get the TableColumn and set its repective Editors and Renderers. I tried to do this at start with JTable's 'setCellEditor' but this did nothing. Is there a purpose to 'setCellEditor'?
The JComboBox will show a vertical scroll bar when it has a certain amount of entries in it. I am interested in showing a horizontal bar. I cant see a way with the JComboBox to configure this. Is this possible? And if so what is the approach?
(In building this crazy thing, I thought that I could not do this in some Toolkits. If Tk had a table, I cant see myself being able to do all this magical swapping of renderers and editors. Swing, the flexibility is there when you need, thank you :) )