| Author |
Passing a float between jTables
|
Jamie Wool
Ranch Hand
Joined: May 03, 2004
Posts: 49
|
|
I'm trying to pass a float from one jTabel into a float in another jTable, but keep getting semantic errors. The code i'm trying to use: saleSalesCheckoutTable.setValueAt((Float)saleSalesShrubTable.getValueAt(i,4),0,4);
|
 |
Ernest Friedman-Hill
author and iconoclast
Marshal
Joined: Jul 08, 2003
Posts: 24057
|
|
|
Well, this one line looks OK in isolation. By "semantic errors" I'm assuming you mean "syntax errors" reported by the compiler. Can you show us the actual error messages? And if the stack trace mentions a file and line number, perhaps you could show us the file and mark the offending line with a comment.
|
[Jess in Action][AskingGoodQuestions]
|
 |
Jamie Wool
Ranch Hand
Joined: May 03, 2004
Posts: 49
|
|
er, sorry sorted it out. The actual line of code is fine, i just accidentally added 1 to the column number, so was trying to write a float to a boolean.
|
 |
 |
|
|
subject: Passing a float between jTables
|
|
|