"Disabled" input when used as a table's header component
Posted on 2006-06-16
I want to change my JTable and add above each column header label a TextField / Combo that will be used for filtering.
I started doing so by implementing a TableCellRenderer and in the
getTableCellRendererComponent I am returning a panel with two rows, one for the Input and one for the Label.
It looks good but I could not focus on that input (not with the mouse and not with the keyboard) it's like the input is disabled.
I thought of adding a MouseListener to the input and activate event my selt but they did not work.
How can I do this?