Results 1 to 2 of 2
- 12-11-2008, 12:30 AM #1
Member
- Join Date
- Dec 2008
- Posts
- 1
- Rep Power
- 0
Getting integer values from a JTable
Hello
The table's cells contain integer values. I would like to save each one of theme them in an array of integers.
The problem is, I don't know how to do so. I tried to use the getValueAt method, but I always get error messages.
I tried something like:
Please help.Java Code:Object o = table.getModel().getValueAt(i, j); a[x]=Integer.parseInt(o.toString());
Thank you. :)
- 12-11-2008, 02:06 PM #2
Rose India
You will get hammered for cross-posting, I am just interested in the problem and the code to make it work.Introduction to Programming Using Java.
Cybercartography: A new theoretical construct proposed by D.R. Fraser Taylor
Similar Threads
-
Integer length
By jithan in forum New To JavaReplies: 1Last Post: 06-12-2008, 03:35 PM -
Retaining DB values as well as Dynamically generated Values.. Help Needed !
By rajivjha in forum Advanced JavaReplies: 0Last Post: 05-22-2008, 10:53 AM -
Jtable duplicates through Hashtable (JTable condition problem) my assignment plz help
By salmanpirzada1 in forum Advanced JavaReplies: 2Last Post: 05-15-2008, 10:15 AM -
Accessing boolean Values of another values in one class.
By a_iyer20 in forum Advanced JavaReplies: 4Last Post: 04-15-2008, 01:04 PM -
Integer vs int
By bugger in forum New To JavaReplies: 1Last Post: 11-14-2007, 09:13 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks