Use of mouselisteners in a jTable
Posted
by eli1987
on Stack Overflow
See other posts from Stack Overflow
or by eli1987
Published on 2010-04-19T15:36:02Z
Indexed on
2010/04/19
15:53 UTC
Read the original article
Hit count: 215
java
I have a jTable with columns 'Job_no' and 'Status'with values such as:
Job_no Status 1 Active 2 Pending 3 Pending
I would like it so that if a user clicks on a Status say in this case the first 'Pending'(where Job_no = 2) an inputDialog pops up allowing the user to change the status of the cell clicked-how can I do this? Bear in mind you will also have to retrieve the Job_no(that corresponds to that status) somehow, and that, though I'm OK with JOptionPane's, I'm new to JTables. I'm using JDBC(mySQL) and have a table 'Jobs' which amongst other things, has column Job_no and status.
Thanks for your help.
© Stack Overflow or respective owner