Article View: borland.public.jbuilder.java.swing
Article #1275Re: Detect Cell Editing in JTable
From: Steve
Date: Mon, 22 Dec 2003 16:55
Date: Mon, 22 Dec 2003 16:55
13 lines
1542 bytes
1542 bytes
"Tor Iver Wilhelmsen (TeamB)" <tor.wilhelmsen@ergo.no> wrote in message news:uwu8p9rwr.fsf@ergo.no... > "Steve" <pearsons_11113@mindspring.com> writes: > > > I would like to detect when editing _begins_ in a table cell. > > Subclass JTable and override the getCellEditor() methods to do what > you want before calling super.getCellEditor(). Correct me if I'm wrong, but that's actually before editing begins, yes? What I want to do is call a selectAll() on the textfield so that it behaves like the typical Windows data entry application (i.e. selects all the text so you can overwrite quickly without extraneous actions). Thx.
Technical Details
Message-ID:
<3fe72213$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.wirehub.nl!news.kweb.on.ca!newsgroups.borland.com!not-for-mailReferences:
<3fe6413e$1@newsgroups.borland.com> <uwu8p9rwr.fsf@ergo.no>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-22 09:00:59 PST From: "Steve" <pearsons_11113@mindspring.com> Newsgroups: borland.public.jbuilder.java.swing References: <3fe6413e$1@newsgroups.borland.com> <uwu8p9rwr.fsf@ergo.no> Subject: Re: Detect Cell Editing in JTable Date: Mon, 22 Dec 2003 08:55:49 -0800 Lines: 15 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: <3fe72213$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1072112147 199.174.199.173 (22 Dec 2003 08:55:47 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.wirehub.nl!news.kweb.on.ca!newsgroups.borland.com!not-for-mail