Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / GUI / July 2005

Tip: Looking for answers? Try searching our database.

Focus Issue with regards to JTable

Thread view: 
ChooChooOnMyHead - 28 Jul 2005 16:18 GMT
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


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.