 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Simon Guest
|
Posted: Wed Oct 19, 2005 10:14 am Post subject: TableCellEditor woes |
|
|
I have a JdbTable loaded from a storage data set. The last column is big decimal. Sometimes when I tab out of this column I get a StackOverflow error and the application crashes. It doesn't happen every time but I have a sequence of operations that causes it to happen every time. I am using a DefaultCellEditor with a JTextField.
It seems that stopCellEditing is being called recursively when the editingStopped event is fired (I created a duplicate of DefaultCellEditor and put some debug print statements in to see what was happening)
Any ideas anybody? (Stack trace below)
at com.borland.dbswing.DBTableModel.setValueAt(DBTableModel.java:376)
at javax.swing.JTable.setValueAt(JTable.java:1794)
at javax.swing.JTable.editingStopped(JTable.java:3167)
at irstradeamend.PercentageCellEditor.stopCellEditing(PercentageCellEditor.java:70)
at com.borland.dbswing.JdbTable.postRow(JdbTable.java:3030) at com.borland.dx.dataset.DataChangeEvent.exceptionDispatch(Unknown Source)
at com.borland.jb.util.EventMulticaster.exceptionDispatch(Unknown Source)
at com.borland.dx.dataset.DataSet.g(Unknown Source)
at com.borland.dx.dataset.DataSet.b(Unknown Source)
at com.borland.dx.dataset.DataSet.goToRow(Unknown Source) at com.borland.dx.dataset.DataSet.goToRow(Unknown Source)
at com.borland.dbswing.DBTableModel.setValueAt(DBTableModel.java:376)
at javax.swing.JTable.setValueAt(JTable.java:1794)
at javax.swing.JTable.editingStopped(JTable.java:3167)
at irstradeamend.PercentageCellEditor.stopCellEditing(PercentageCellEditor.java:70)
at com.borland.dbswing.JdbTable.postRow(JdbTable.java:3030) at com.borland.dx.dataset.DataChangeEvent.exceptionDispatch(Unknown Source)
at com.borland.jb.util.EventMulticaster.exceptionDispatch(Unknown Source)
at com.borland.dx.dataset.DataSet.g(Unknown Source)
at com.borland.dx.dataset.DataSet.b(Unknown Source)
at com.borland.dx.dataset.DataSet.goToRow(Unknown Source)
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|