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
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Java in General
Reply 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: 24057
    
  13

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://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Passing a float between jTables
 
Similar Threads
casting from a JTextField to a float?
Dividing Ints
WA #2 ..... word association
int to float conversion
float