Article View: borland.public.jbuilder.java.swing
Article #9492Re: jTables reading in last cell
From: Martin Dahlem
Date: Tue, 28 Mar 2000 00:00
Date: Tue, 28 Mar 2000 00:00
15 lines
1241 bytes
1241 bytes
Just call:
if(table.isEditing())
table.getCellEditor().stopCellEditing();
bye, MD
Stuart Kelly wrote:
> I am using the default table model for a JTree and I am always retrieveng
> null from the last value the user enteres. The only fix to this is after the
> user enters data into the last cell clicks on another cell and then the read
> button. I would be grateful i someone could explain to me what I am doing
> wrong.
> Cheers
Technical Details
Message-ID:
<38E0C1F1.FCC519E4@germany.ncr.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<38d6357b$0$18030@flex.news.uk.uu.net>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,88e53dabea90d0ad X-Google-Attributes: gid111d45,public X-Google-Thread: 10fd6d,88e53dabea90d0ad X-Google-Attributes: gid10fd6d,public From: Martin Dahlem <martin.dahlem@germany.ncr.com> Subject: Re: jTables reading in last cell Date: 2000/03/28 Message-ID: <38E0C1F1.FCC519E4@germany.ncr.com> X-Deja-AN: 603419648 Content-Transfer-Encoding: 7bit References: <38d6357b$0$18030@flex.news.uk.uu.net> X-Original-NNTP-Posting-Host: ncrnews.daytonoh.ncr.com X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-Trace: 28 Mar 2000 09:30:13 -0500, ncrnews.daytonoh.ncr.com MIME-Version: 1.0 Reply-To: martin.dahlem@germany.ncr.com Newsgroups: borland.public.jbuilder.java.swing,comp.lang.java.gui