It's because mouseClicked events aren't fired if you move the mouse during
the click (not terribly useful in my opinion).  Try using mousePressed or
mouseReleased.

Brett

> -----Original Message-----
> From: Mercader i Botella, Salva [mailto:salva.mercader@;gedas.es]
> Sent: Wednesday, October 23, 2002 8:05 AM
> To: JDJList
> Subject: [jdjlist] Rendered checkbox in a table.
> 
> 
> > Hello all,
> > 
> > I have extended JTable into a class of my own (called, 
> p.e., myJTable),
> > I'm using the default renderer to implement a checkbox (using a
> > Boolean.class return in the "getColumnClass" method)
> > My problem is about the mouseClicked events and the 
> implemented Boolean. I
> > explain you the actual behaviour: if I click the mouse, 
> without moving it,
> > everything runs ok and myJTable catch this mouse event, but 
> if I click on
> > it moving the mouse it any pixel (without going out from 
> checkbox space)
> > then myJTable isn't aware of the mouseClicked event.
> > Could anyone explain me, how can I make myJTable be informed about
> > mouseclicked events?
> > 
> > Thanks in advanced,  
> > 
> > 
> >                   Salva Mercader
> 
> ____________________________________________________
> To change your JDJList options, please visit:
> http://www.sys-con.com/java/list.cfm
> 
> Be respectful! Clean up your posts before replying
> ____________________________________________________
> 

____________________________________________________
To change your JDJList options, please visit:
http://www.sys-con.com/java/list.cfm

Be respectful! Clean up your posts before replying
____________________________________________________

Reply via email to