Link to home
Start Free TrialLog in
Avatar of dshrenik
dshrenikFlag for United States of America

asked on

JButton in JTable

One of the columns in my JTable has JButtons (1 JButton in a cell).

Depending on the cell in which the button is present, I want to execute a particular function.

Please let me know how I can do this. Thanks!
SOLUTION
Avatar of for_yan
for_yan
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
In general there is conevnient method of hadnling events from the JTable based on the location of mouseclick point
in which cell it was clicked  - but in this case it will also dal with events  if you click in the cvell but not on the button
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial