Article View: borland.public.jbuilder.java.swing
Article #9893Re: detecting of value changed in JTable
From: David M. Karr
Date: Wed, 29 Dec 1999 00:00
Date: Wed, 29 Dec 1999 00:00
15 lines
1100 bytes
1100 bytes
>>>>> "Omer" == Omer Azhar Qureshi <oaq@technologist.com> writes:
Omer> hi all, i want to detect when the value in a cell of my JTable is
Omer> changed so i can enable buttons like Save & Revert on my applet. the
Omer> problem is that the setValueAt method is in my TableDataModel, and i
Omer> have no acces to my applet from there.
Omer> any suggestions will be most welcomed....
Omer> thanx in advance Oaq
Look at "TableModel.addTableModelListener()". Using this, your applet can
"listen" to changes in your model, so your table model doesn't have to know
anything about your applet.
Technical Details
Message-ID:
<uln6dvba9.fsf@attws.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<84csq9$oh811@forums.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,7ff5cdfda3674417 X-Google-Attributes: gid111d45,public From: david.karr@attws.com (David M. Karr) Subject: Re: detecting of value changed in JTable Date: 1999/12/29 Message-ID: <uln6dvba9.fsf@attws.com> X-Deja-AN: 566196086 Sender: DKarr@WA02513 References: <84csq9$oh811@forums.borland.com> Organization: Another Netscape Collabra Server User Newsgroups: borland.public.jbuilder.java.swing