🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: JTable types

#8100
From: Chandika Mendis
Date: Tue, 24 Oct 2000 00:00
30 lines
1609 bytes
I'm returning the correct type in the getColumnClass method. I sorted this
by using a cellrender on numeric columns(??!!)

Cheers,

Chandika

"John McGrath [TeamB]" <ng-b@JPMcGrath.net> wrote in message
news:MPG.145d9298e112434f989c6b@forums.borland.com...
> 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: <39f5dd1f$1_2@dnews>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <39f10a0b$1_2@dnews> <MPG.145d9298e112434f989c6b@forums.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,65ba1de9d1eab198
X-Google-Attributes: gid111d45,public
From: "Chandika Mendis" <chandika@java-shop.com>
Subject: Re: JTable types
Date: 2000/10/24
Message-ID: <39f5dd1f$1_2@dnews>
X-Deja-AN: 685359649
References: <39f10a0b$1_2@dnews> <MPG.145d9298e112434f989c6b@forums.borland.com>
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700
X-Trace: 24 Oct 2000 12:03:59 -0800, 63.203.254.106
Organization: GSL
X-MSMail-Priority: Normal
Newsgroups: borland.public.jbuilder.java.swing