This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I have written my own component that is kind of like a checkbox, called a SelectableComponent. I am busy putting this into various tables and I would like to ask a question about the custom cell editor that I'm using to edit the component in the table.
To give you a quick overview, the SelectableComponent has two boolean values, isSelectable and isSelected.
If the SelectableComponent.isSelectable() then the renderer shows a checkbox in the table. Else it shows a blank label.
If the SelectableComponent.isSelectable(), then the editor is placed on the cell.
Now the problem I am having is that it is working as far as I can click on the cells to get them to change their value and as I click the checkbox selects and unselects. However, I need this clicking to be registered with another table that tally's totals, and this change at the moment registers only when the row that I am clicking on loses focus.
How can I make this change in selection fire the event without having to lose the focus?
Many kind regards, Rachel
[ September 30, 2004: Message edited by: Rachel Swailes ]