aspose file tools*
The moose likes Java in General and the fly likes Passing a float between jTables Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Passing a float between jTables" Watch "Passing a float between jTables" New topic
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: 24187
    
  34

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Passing a float between jTables