Article View: borland.public.jbuilder.java.swing
Article #8177JTable types
From: Chandika Mendis
Date: Fri, 20 Oct 2000 00:00
Date: Fri, 20 Oct 2000 00:00
14 lines
1228 bytes
1228 bytes
I'm trying to implement a custom model for JTable. Everything works fine except that when modifying a numeric field (eg. double), jtable passes a String representation of the modified value to the tablemodel rather than the wrapped double object. I'm fairely certain that it's supposed to pass the Wrapper Object. The type of the specifiic column and also the existing value in that column happen to be double. If anyone knows how to overcome this please let me know. I can think of a long-winded approach which is to use reflection to get the constructor of the class that takes a string argument and create the object before storing it in my model...... but should this be necessary? Thanks in advance, Chandika
Technical Details
Message-ID:
<39f10a0b$1_2@dnews>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,65ba1de9d1eab198,start X-Google-Attributes: gid111d45,public From: "Chandika Mendis" <chandika@java-shop.com> Subject: JTable types Date: 2000/10/20 Message-ID: <39f10a0b$1_2@dnews> X-Deja-AN: 684032743 X-Trace: 20 Oct 2000 20:14:19 -0800, 63.203.254.9 Organization: GSL X-MSMail-Priority: Normal X-Priority: 3 Newsgroups: borland.public.jbuilder.java.swing X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700