I have homemade buttons (Extended JLabels with MouseListeners) in
columns 0 and 2 on a JTable. They work fine, except that when i first
click on them, that cell gets focus and i have to click them a SECOND
time to get the mouse event to fire. Is there a function dealing with
focus (which i'm assuming is the problem) that will make it so i only
need to click these buttons once? An idea I had is giving default focus
to all cells in both columns, but i have NO idea how i'd do that. any
ideas? any input would be much appreciated ^__^.
THANKS
John Stamos
Elim Garak - 28 Jul 2005 19:20 GMT
>any ideas? any input would be much appreciated ^__^.
Well maybe you could try the method
public void setClickCountToStart(int count)
of your Celleditor and set the number of clicks to 1.
Hope that solves the problem..
Cheers ElimGarak