Article View: borland.public.jbuilder.java.swing
Article #694Re: JTable and Custom Default Cell Editors
From: John McGrath [TeamB]
Date: Fri, 21 Jan 2005 17:36
Date: Fri, 21 Jan 2005 17:36
18 lines
1573 bytes
1573 bytes
On 1/21/2005 at 8:56:43 AM, Erica Wheatcroft wrote:
> I have a jtable that uses two custom default cell editors to create combo
> boxes for two of the the 4 columns. If the user selects another value
> from either of the combo boxes i want to know that so i can indicate a
> save must occur. I'm not sure what event i should listen to? Does any
> one have any suggestions?
You need to add a TableModelListener to the JTable's TableModel.
--
Regards,
John McGrath [TeamB]
---------------------------------------------------
Before sending me e-mail, please read:
http://www.JPMcGrath.net/newsgroups/e-mail.html
Technical Details
Message-ID:
<xn0dxip3jqrhou5002@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<41f10a1a$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 111d45,da578b787c19cfd1 X-Google-Attributes: gid111d45,public X-Google-Language: ENGLISH,ASCII-7-bit From: "John McGrath [TeamB]" <ng-b@JPMcGrath.net> Subject: Re: JTable and Custom Default Cell Editors Newsgroups: borland.public.jbuilder.java.swing References: <41f10a1a$1@newsgroups.borland.com> User-Agent: XanaNews/1.17.1.2 Message-ID: <xn0dxip3jqrhou5002@newsgroups.borland.com> X-Ref: newsgroups.borland.com ~XNS:0000015C MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 NNTP-Posting-Host: 141.151.11.96 Date: 21 Jan 2005 09:36:29 -0800 X-Trace: newsgroups.borland.com 1106328989 141.151.11.96 (21 Jan 2005 09:36:29 -0800) Lines: 18 X-Authenticated-User: jpmcgrath Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail