How to addMouseListener

  1 post   Feedicon  
Replies: 0 - Last Post: September 28, 2010 11:59
by: keleon
« Older Topic » Newer Topic
showing 1 - 1 of 1
 
Posted: September 28, 2010 11:59 by keleon
Hi there,
I have the following problem. I have a JTable and I want to delete a row, if an Icon in that row is clicked.

So I would like to catch the mouse click event in the controller if the object in the table is clicked so that I can remove the Item from my model and update the view.

The GUI is designed with Netbeans. The object I am clicking on is generated in my ruby code where the table model is generated and mapped to the model of my JTable.

How do I implement such a MouseListener to my view? Unfortunately I am at the beginning of learning Java and have not much experience with Java.

Thank you!
Replies: 0 - Last Post: September 28, 2010 11:59
by: keleon
« Older Topic » Newer Topic
  • Mysql
  • Glassfish
  • Jruby
  • Rails
  • Nblogo
Terms of Use; Privacy Policy;
© 2014, Oracle Corporation and/or its affiliates
(revision 20160708.bf2ac18)
 
 
Close
loading
Please Confirm
Close