🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

How to update last row's column in JTable?

#13004
From: Tapio Holopainen
Date: Tue, 06 Oct 1998 00:00
17 lines
1108 bytes
Hello to all!

I'm using JTable to data editor. I have added JTable my own model (which
extends AbstractTableModel) to handle tables data. 

Problem: when user is at last row and edits columns data,
setValueAt(Object value, int row, int col)-method is not called when
user presses enter (after editing). 

Enter and setValue-method works just fine if not at last row, but when
at last row user must accept modifications either arrow-keys or pressing
mouse at different row. Is this known bug or do I make some basic
errors?

Thanks for the answers.

- Tapio
Technical Details
Message-ID: <3619C83F.6F23ED4A@sysline.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,75b4b6d81fb5a685,start
X-Google-Attributes: gid111d45,public
From: Tapio Holopainen <tapio.holopainen@sysline.com>
Subject: How to update last row's column in JTable?
Date: 1998/10/06
Message-ID: <3619C83F.6F23ED4A@sysline.com>
X-Deja-AN: 398180962
Content-Transfer-Encoding: 7bit
To: swing@eos.dk
X-Accept-Language: en
Content-Type: text/plain; charset=us-ascii
Organization: Sysline Oy
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.swing