• Post Reply Bookmark Topic Watch Topic
  • New Topic

On selecting a row in JTable,some data should be displayed in JTextArea.

 
Archana Menon
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I want to display some data in JTextArea on selecting a row in a JTable.Tried through many links,but in vain.Please help,its urgent.
 
prashant gour
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use ListSelectionListener and set your text in valueChanged method of this listener.

hope this will work for you.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!