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 / General / December 2006

Tip: Looking for answers? Try searching our database.

JTable Cell focus

Thread view: 
Theme - 14 Dec 2006 16:06 GMT
Good day, this is the problem:
Then I'm editing cells and button pushed I need to stop editing. But I
don't know how to handle this event in JTable and CellEditor. JTable
lost focus then I try to edit cell.  Does anybody knows who gets the
focus ? :)
Andrew Thompson - 14 Dec 2006 16:59 GMT
....
> Then I'm editing cells and button pushed ..

*
>..I need to stop editing. But I
> don't know how to handle this event in JTable and CellEditor. JTable
> lost focus then I try to edit cell.  Does anybody knows who gets the
> focus ? :)

* I am guessing the button should have the current focus.
[ Assuming it was pushed by either tabbing to it, and
activating it using the appropriate key (e.g. space or
enter), or by pointing at it & clicking on it.  If the button
was activated using telekinesis, or other means, all
bets are off! ]

To say more than that, I'd need to see code,
preferebly an SSCCE
<http://www.physci.org/codes/sscce>

Andrew T.
Theme - 18 Dec 2006 07:02 GMT
"""
> * I am guessing the button should have the current focus.
>
> Andrew T.

Yes, I was thinking so too :) but we are using netBeans RCP and button
is on the other panel.
It must receive focus, but i can not add handling code there
Short, Self Contained, Correct (Compilable), Example will be too large
:)

Don't know anybody who receive focus then double click on cell in
JTable ?
Table loose focus but i don't know who receive it and, i was trying to
Google but failed


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.