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

Tip: Looking for answers? Try searching our database.

Jtable cell navigation problem

Thread view: 
Seref Arikan - 28 Jan 2004 17:52 GMT
Hi,
I hava a jtable with custom controls and there are two kinds of custom
controls. One is derived from jtextfield and the other one derives
from a panel with a textfield and a button on it.
As long as i'm dealing with editor controls that derive from
textfield, i have no problems, i've even managed to pass to the next
cell using tab key (by  using processkeybinding on jtable). But when i
used editCellAt for editing my editor deriving from panel, i had to
set the focus to textbox on panel.
After that i've tried to capture the tab key in the text field on
panel (on my custom editor). Even if i catch the tab key, i could not
edit the next cell (which is another custom editor deriving from
jtextField) . Would someone please point me to main steps for
obtaining this behaviour ? I'd also like to do the same with enter
key. As i've said, the composite problem is where i am stuck right
now, since i can get in, but can't get out of this control. Any help
is appreciated a lot.

Best Regards
Seref Arikan
Marc Dzaebel - 29 Jan 2004 17:48 GMT
> now, since i can get in, but can't get out of this control.

I'm unclear about your problem but it seems to me you need to call
stopCellEditing() in your DefaultCellEditor subclass.

Marc


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.