Article View: borland.public.jbuilder.java.swing
Article #1416Re: Detect Cell Editing in JTable
From: Steve
Date: Mon, 22 Dec 2003 02:40
Date: Mon, 22 Dec 2003 02:40
27 lines
1853 bytes
1853 bytes
Ok, I've refined the problem a bit. The event _is_ firing when editing is started by double-clicking on the cell. However if editing is starting by typing, then the event does not fire. How strange is that? Basically all I'm trying to do is to call selectAll when editing begins. Seems like it should be a pretty simple thing to do. "Steve" <pearsons_11113@mindspring.com> wrote in message news:3fe6413e$1@newsgroups.borland.com... > I would like to detect when editing _begins_ in a table cell. Unfortunately, > the CellEditor only fires events on stop or cancel editing. > > I tried the following with no luck: > > 1. Create a JdbTextField and register a listener on focusGained. > 2. Create DefaultCellEditor, passing the JdbTextField to the constructor. > 3. Call setItemEditor to the DefaultCellEditor for the Column in question. > > As far as I can tell, the event never fires. Is this the right approach? Any > other ideas? TIA. > > -Steve > >
Technical Details
Message-ID:
<3fe6598c$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<3fe6413e$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,a6b8964b405ddc75 X-Google-Attributes: gid111d45,public X-Google-ArrivalTime: 2003-12-21 19:09:33 PST From: "Steve" <pearsons_11113@mindspring.com> Newsgroups: borland.public.jbuilder.java.swing References: <3fe6413e$1@newsgroups.borland.com> Subject: Re: Detect Cell Editing in JTable Date: Sun, 21 Dec 2003 18:40:12 -0800 Lines: 29 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 NNTP-Posting-Host: 199.174.199.173 Message-ID: <3fe6598c$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1072060812 199.174.199.173 (21 Dec 2003 18:40:12 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail