Focus Issue with regards to JTable



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

.


Quantcast