File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT and the fly likes how to get the values from selected row of JTable 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 get the values from selected row of JTable" Watch "how to get the values from selected row of JTable" New topic
Author

how to get the values from selected row of JTable

DARSHA gupta
Greenhorn

Joined: Oct 26, 2004
Posts: 3
hello all,

i want to take all values from the selected row of JTable.

please can anybuddy send me the sample code on this

Thanks
Darsha
Craig Wood
Ranch Hand

Joined: Jan 14, 2004
Posts: 1535
DARSHA gupta
Greenhorn

Joined: Oct 26, 2004
Posts: 3
Thanks Craig,
guy madura
Greenhorn

Joined: Oct 19, 2004
Posts: 6
Hi,

i too having the same problem .I went on to do the suggestions mentioned by Craig but i couldnt get the result.I need to get the values of a column from a JTable which has to undergo some validations when I click a button .If I change the focus to other column with the mouse ,before entering that button,I can fetch the value.Is there any possibility to change the focus explicitly when I click that button.

Suggestions please.

Kumar.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: how to get the values from selected row of JTable
 
Similar Threads
JTable
JTable
MultiComponent JTable
Help with JTable
JTable