🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: JTable types

#8087
From: John McGrath TeamB
Date: Mon, 23 Oct 2000 00:00
21 lines
1170 bytes
On Fri, 20 Oct 2000 20:24:34 -0700, Chandika Mendis wrote:

> 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.

Are you sure that implementation of getColumnClass() in your model 
returns the appropriate type?

Also, what version of Swing are you using.  There was a problem with this 
in one of the earlier versions of Swing,

-- 
Regards,

John McGrath [TeamB]

---------------------------------------------------
Before sending me e-mail, please read:
    http://www.JPMcGrath.net/newsgroups/e-mail.html
Technical Details
Message-ID: <MPG.145d9298e112434f989c6b@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <39f10a0b$1_2@dnews>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,65ba1de9d1eab198
X-Google-Attributes: gid111d45,public
From: John McGrath  [TeamB] <ng-b@JPMcGrath.net>
Subject: Re: JTable types
Date: 2000/10/23
Message-ID: <MPG.145d9298e112434f989c6b@forums.borland.com>
X-Deja-AN: 684683433
References: <39f10a0b$1_2@dnews>
Organization: Another Netscape Collabra Server User
Newsgroups: borland.public.jbuilder.java.swing