🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #9994

Re: JTable (nightmare)

#9994
From: Greg Hamer
Date: Wed, 08 Dec 1999 00:00
23 lines
1335 bytes
When the user clicks the button, you can call isEditing() and if true call
editingStopped(Change Event e). The default implementation of editing
Stopped does not use the parameter, and gets  the current value from the
cell editor and updates the the model.

Alexandre Reis wrote:

> I have a JTable that I use for input.  When the user clicks a button, I
> get the items from the table and build a query.
>
> My problem is:
>
> If the user types something on a cell but does not move the focus from
> that field or press the Enter key, the tablemodel is not updated.
>
> If the user is on the last row of the table and press Enter, I have the
> same problem.
>
> Is there a way to make JTable update its model as the user is typing in?
>
> Thanks in advance.
>
> Alex.
Technical Details
Message-ID: <384EFFDA.298A02FA@borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <384C0F30.C378165B@mitra.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,6c8661f95f5a553d
X-Google-Attributes: gid111d45,public
From: Greg Hamer <ghamer@borland.com>
Subject: Re: JTable (nightmare)
Date: 1999/12/08
Message-ID: <384EFFDA.298A02FA@borland.com>
X-Deja-AN: 558370382
Content-Transfer-Encoding: 7bit
References: <384C0F30.C378165B@mitra.com>
X-Accept-Language: en
Content-Type: text/plain; charset=us-ascii
Organization: Another Netscape Collabra Server User
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.swing