Article View: borland.public.jbuilder.java.swing
Article #12945Re: How to update last row's column in JTable?
From: Vladimir Olenin
Date: Sat, 10 Oct 1998 00:00
Date: Sat, 10 Oct 1998 00:00
52 lines
2389 bytes
2389 bytes
This is a multi-part message in MIME format. --------------21E4BF9ADB925C60BBF0ED25 Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 7bit Well, u can try this one: when u need your JTable to updated, just setModel to the one u use. This must work. Understand that it's not the best solution, but it MUST work. --------- Vladimir Tapio Holopainen wrote: > > I tested this solution also and it worked: models setValueAt-method was > called. Problem is that if I'm gonna use it I have to set tables data to > model 'outside' from table (e.g. using button which forces editing to > stop). Hope you understand what I mean... > > JTable handles this setValueAt-method call automatically to model, but > if user edits last row and then presses enter setValueAt-method call > never happens. This is my problem. > > Thank's for your answer anyway. > > - Tapio -- +-------+=========+-------+ Join in Java community now! http://www.geocities.com/SiliconValley/Heights/9815 (NB: the page is under construction now) +-------+=========+-------+ --------------21E4BF9ADB925C60BBF0ED25 Content-Type: text/x-vcard; charset=koi8-r; name="keenonjava.vcf" Content-Transfer-Encoding: 7bit Content-Description: Card for Vladimir Olenin Content-Disposition: attachment; filename="keenonjava.vcf" begin:vcard n:Vladimir;Olenin x-mozilla-html:FALSE adr:version:2.1 version:2.1 email;internet:keenonjava@collegemail.com note:Java programmer. Open for project development offers. See my home page at: http://www.geocities.com/SiliconValley/Heights/9815/ end:vcard --------------21E4BF9ADB925C60BBF0ED25--
Technical Details
Message-ID:
<361E9232.90805692@collegemail.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<3619C83F.6F23ED4A@sysline.com> <361AAA9C.6BA736E3@collegemail.com> <361B2E0C.E49346AD@sysline.com> <6vitsr$s0e9@forums.borland.com> <361DEB59.B44A1E94@sysline.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,75b4b6d81fb5a685 X-Google-Attributes: gid111d45,public From: Vladimir Olenin <keenonjava@collegemail.com> Subject: Re: How to update last row's column in JTable? Date: 1998/10/10 Message-ID: <361E9232.90805692@collegemail.com> X-Deja-AN: 399494899 References: <3619C83F.6F23ED4A@sysline.com> <361AAA9C.6BA736E3@collegemail.com> <361B2E0C.E49346AD@sysline.com> <6vitsr$s0e9@forums.borland.com> <361DEB59.B44A1E94@sysline.com> X-Accept-Language: en,ru Content-Type: multipart/mixed; boundary="------------21E4BF9ADB925C60BBF0ED25" Organization: Another Netscape Collabra Server User Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.swing