Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to get the values from selected row of JTable

 
DARSHA gupta
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 1535
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
DARSHA gupta
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Craig,
 
guy madura
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic