• Post Reply Bookmark Topic Watch Topic
  • New Topic

Enabling buttons on rowselection  RSS feed

 
Sree Mami
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All

Can anyone give me a solution what to do to achieve my task
 
Richard Green
Ranch Hand
Posts: 536
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
with a JTable? If so, check http://java.sun.com/docs/books/tutorial/uiswing/TOC.html
 
Pete Thorson
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If it is a JTable, you can add a list selection listener:
http://java.sun.com/docs/books/tutorial/uiswing/events/listselectionlistener.html

You then just add setting enabled to true or false based on the selection in the valueChanged method.
 
marc weber
Sheriff
Posts: 11343
Java Mac Safari
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please continue this discussion in the Swing/AWT forum.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!