Article View: borland.public.jbuilder.java.swing
Article #1415Detect Cell Editing in JTable
From: Steve
Date: Mon, 22 Dec 2003 00:56
Date: Mon, 22 Dec 2003 00:56
13 lines
1448 bytes
1448 bytes
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:
<3fe6413e$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!priapus.visi.com!orange.octanews.net!news.octanews.net!news-out.visi.com!petbe.visi.com!newsfeed.wirehub.nl!news.kweb.on.ca!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,a6b8964b405ddc75,start X-Google-Attributes: gid111d45,public X-Google-ArrivalTime: 2003-12-21 17:04:53 PST From: "Steve" <pearsons_11113@mindspring.com> Newsgroups: borland.public.jbuilder.java.swing Subject: Detect Cell Editing in JTable Date: Sun, 21 Dec 2003 16:56:31 -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: <3fe6413e$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1072054590 199.174.199.173 (21 Dec 2003 16:56:30 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!priapus.visi.com!orange.octanews.net!news.octanews.net!news-out.visi.com!petbe.visi.com!newsfeed.wirehub.nl!news.kweb.on.ca!newsgroups.borland.com!not-for-mail