wood burning stoves 2.0*
The moose likes Swing / AWT / SWT and the fly likes How to retrive cell value from Jtable into a String variable for further use? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "How to retrive cell value from Jtable into a String variable for further use?" Watch "How to retrive cell value from Jtable into a String variable for further use?" New topic
Author

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

Yuta Lolap
Ranch Hand

Joined: Jun 03, 2012
Posts: 83

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]



[Thumbnail for jtable code.PNG]

Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
getValueAt(...)?
Yuta Lolap
Ranch Hand

Joined: Jun 03, 2012
Posts: 83

I am sorry i didnt get you. I have worked on Jtable before please can you elaborate?
Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
look up that method of the JTable class
 
GeeCON Prague 2014
 
subject: How to retrive cell value from Jtable into a String variable for further use?