• Post Reply Bookmark Topic Watch Topic
  • New Topic

how to make mouse clicked event in jlist

 
sanjay kams
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

My GUI page contains JList and table. Based on the selection in jlist, each time table has to be modified, i.e., if i select first value in jlist and I am adding one or more rows in the table. And then if i click second value in jlist means, a new table have to appear and have to add some new values.

Likewise the table should be..

Can anyone suggest me, how to do like this.. I need to complete this within today.. But i dont know how to do.. help please!!

Thanks in advance.
 
Rob Spoor
Sheriff
Posts: 20819
68
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check out ListSelectionListener.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!