Can't get mousePressed event to work

Hi all!

I have class, that extends DefaultTableModel. I can not make that when end user click on specifc cell, to create new class.

Code looks like this:

publicclass ContactListextends DefaultTableModelimplements MouseListener{

...

publicvoid mousePressed(MouseEvent mouseEvent){

ContactUpdate conUpd =new ContactUpdate ();

}

....

}

Can you help me with this? Thank you in advance!

[790 byte] By [proNicka] at [2007-11-26 20:47:57]
# 1
In the future, Swing related questions should be posted in the Swing forum.Attach the MouseListener to the JTable, not its model.
KelVarnsona at 2007-7-10 2:11:13 > top of Java-index,Java Essentials,New To Java...