🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #14456

Editing a JTable

#14456
From: java32guy
Date: Tue, 31 Aug 1999 00:00
17 lines
1358 bytes
I have created a JTable and have extended the DefaultTableModel class.
In my class I override the isCellEditable function and return true for
every cell.  This allows me to make changes to the table.  When I make
the changes though and hit return, it puts the original text back into
the cell.  This is true whether the cell is just a textfield, a
JComboBox, or a JCheckBox.  I have instantiated the data in this table
using a Vector.  Does anyone have any idea as to why it's not recording
my changes.  I have not added my own editor or anything like that.  I
have only overridden the DefaultTableModel.

you can also email me at JavaOODE@aol.com

Tghanks


Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
Technical Details
Message-ID: <7qhns2$ej8$1@nnrp1.deja.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: f74b3,ca4709a5c403e7a0,start
X-Google-Attributes: gidf74b3,public
From: java32guy@my-deja.com
Subject: Editing a JTable
Date: 1999/08/31
Message-ID: <7qhns2$ej8$1@nnrp1.deja.com>
X-Deja-AN: 519471404
X-Http-Proxy: 1.0 x37.deja.com:80 (Squid/1.1.22) for client 171.215.184.27
Organization: Deja.com - Share what you know. Learn what you don't.
X-Article-Creation-Date: Tue Aug 31 23:18:37 1999 GMT
X-MyDeja-Info: XMYDJUIDjava32guy
Newsgroups: borland.public.jbuilder.java.language
X-Http-User-Agent: Mozilla/4.61 [en] (Win98; I)