BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

TableCellEditor woes

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> JBuilder DB Swing
View previous topic :: View next topic  
Author Message
Simon
Guest





PostPosted: Wed Oct 19, 2005 10:14 am    Post subject: TableCellEditor woes Reply with quote




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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> JBuilder DB Swing All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.