This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization 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
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