Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to retrive cell value from Jtable into a String variable for further use?

 
Yuta Lolap
Ranch Hand
Posts: 86
Eclipse IDE Java jQuery
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hey all,

I wanna select a particular cell from my jtable and then store it in a string variable for future use. How do i do that? Please help.

I have generated the Jtable with the following constructor Jtable(Vector columns , Vector data);

Cant upload the code because Coderanch is giving the following error. I cant even make out the line no.


I am attaching an image of the code snippet please have a look. I need this code urgently!!


Error by Code Ranch:

Some lines in the code block exceed 120 characters. Such as:
in code block 1, line number(s): [55]
jtable code.PNG
[Thumbnail for jtable code.PNG]
jtable code
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
getValueAt(...)?
 
Yuta Lolap
Ranch Hand
Posts: 86
Eclipse IDE Java jQuery
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am sorry i didnt get you. I have worked on Jtable before please can you elaborate?
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
look up that method of the JTable class
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic