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 / September 2004

Tip: Looking for answers? Try searching our database.

Immediate editing in JTables

Thread view: 
Mike Westerfield - 27 Sep 2004 20:14 GMT
A JTable consisting of strings using the default editor requires the
user to double-click on the cell to edit. I would like to set up my
JTable so the user can start editing after a single click or
immediately after arriving at the cell using the tab key. Is there an
easy way to do this, or do I need to override the mouse and key
behavior for the JTable to make this happen?

Mike Westerfield
Philippe DE RIVAROLA - 28 Sep 2004 09:23 GMT
You call call the setClickCountToStart on the DefaultCellEditor to enable
edition
on one click instead of two.
For direct edition using the tab key it already works by default. If you
type some
text when a cell is selected and focussed, it will automatically start the
edition
(event if you don't see the caret blinking).

  Philippe


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.