Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Passing a float between jTables

 
Jamie Wool
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 24212
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Jamie Wool
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic