0

I am currently creating the GUI for my school project. It is a theatre management program that lets you add Groups. To these groups you can then add Students and Rehearsal dates. All of this is stored in separate LinkedLists. Now, I have a Tab in my program with a JTable that contains all the Groups. What I want, is the following: When the user clicks on one of the records in the JTable, a new JDialog pops up that displays two JTables, one that displays all the students in that group, and one that displays all the rehearsals assigned to that group. How can this be done?

I am not requesting full code (would be nice though), just want to know how I can make the records clickable, so that I can then add an ActionListener to the event of clicking on one of the records.

I hope that makes sense :/

If you need any code from my program, tell me. I just don't know what you would possibly need.

Andrew Thompson
  • 168,117
  • 40
  • 217
  • 433
Nino
  • 17
  • 1
  • 9
  • 2
    Take a look at this SO question:http://stackoverflow.com/questions/1378096/actionlistener-on-jlabel-or-jtable-cell – Rob Watts Apr 10 '13 at 22:08
  • I look at a `ListSelectionListener` instead of a `MouseAdapter`, for [example](http://stackoverflow.com/a/14801908/230513). – trashgod Apr 10 '13 at 23:49

0 Answers0