Article View: borland.public.jbuilder.java.swing
Article #9579Re: JTable Question!
From: John P. McGrath
Date: Wed, 01 Mar 2000 00:00
Date: Wed, 01 Mar 2000 00:00
18 lines
1062 bytes
1062 bytes
On Tue, 29 Feb 2000 21:41:14 +0800, Redarmy wrote: > when double-cliced a cell JTable can invoke a celleditor. > but > How can i invoke the celleditor when focus changed after TAB or ENTER > pressed. I am not sure I understand exactly under conditions you want to start the editing -- a focus change after a specific key press? Regardless, you need to detect the conditions (whatever they are) using a KeyListener (or FocusListener) on the JTable, then have the listener call the JTable editCellAt() method to start the editing. -- John P. McGrath <JPMcGrath@fast.net> <jpm@nscs.fast.net>
Technical Details
Message-ID:
<MPG.1326a903b6f909909897cf@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<89ghnu$jhb1@bornews.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,6613c634ab0cd992 X-Google-Attributes: gid111d45,public From: John P. McGrath <JPMcGrath@fast.net> Subject: Re: JTable Question! Date: 2000/03/01 Message-ID: <MPG.1326a903b6f909909897cf@forums.borland.com> X-Deja-AN: 591687620 References: <89ghnu$jhb1@bornews.borland.com> Organization: Another Netscape Collabra Server User Newsgroups: borland.public.jbuilder.java.swing