Not firing setValueAt() in the TableModel

Hi All,

I have a JTabbedPane which contains 6 Tabs and each Tab contains a JTable. A table may have JTextFieldcelleditor , JCheckBoxcelleditor...

I entered a value in the JTextFieldcelleditor of first Tab.

and immediately ...I am changing from first Tab to second Tab, then entered value is not set withthe TableModel i,.e setValueAt() of My TableModel is not firing...

Regards,

Ananth

[423 byte] By [vasmhi_1981a] at [2007-11-26 16:56:52]
# 1
-
ProZa at 2007-7-8 23:24:35 > top of Java-index,Desktop,Core GUI APIs...
# 2
try setting this on the tabletable.putClientProperty("terminateEditOnFocusLost", Boolean.TRUE);Failing that, you could add a focus listener, and call stopCellEditing() directly?
macrules2a at 2007-7-8 23:24:35 > top of Java-index,Desktop,Core GUI APIs...
# 3
setyourtable.putClientProperty("terminateEditOnFocusLost",Boolean.TRUE);for all tables and the values are set when changing tabs.EDIT: :shakefist: @ mac ! ;-)
PhHeina at 2007-7-8 23:24:35 > top of Java-index,Desktop,Core GUI APIs...
# 4
> EDIT: :shakefist: @ mac ! ;-)lol, we got stung by that one a few times :)
macrules2a at 2007-7-8 23:24:35 > top of Java-index,Desktop,Core GUI APIs...