Article View: borland.public.jbuilder.java.swing
Article #7934Re: formatting data in JTable
From: Dave Schrock
Date: Wed, 29 Nov 2000 00:00
Date: Wed, 29 Nov 2000 00:00
9 lines
890 bytes
890 bytes
You might want to look at the NumberFormat and/or MessageFormat classes. Zachary Cooper wrote: > I'm trying to set fixed formats for the cells in my JTable. I want Double's > to always show 5 decimal places. I've implemented my own TableCellRenderer, > but the 'formatted' values I'm passing back aren't taking. Any suggestions? > > Thanks.
Technical Details
Message-ID:
<3A256F70.551FDD3C@lmco.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<39eb44dc_1@dnews>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,e68eda959319471c X-Google-Attributes: gid111d45,public From: Dave Schrock <dschrock@lmco.com> Subject: Re: formatting data in JTable Date: 2000/11/29 Message-ID: <3A256F70.551FDD3C@lmco.com> X-Deja-AN: 699257274 Content-Transfer-Encoding: 7bit References: <39eb44dc_1@dnews> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-Trace: 29 Nov 2000 13:04:57 -0800, 192.35.35.40 MIME-Version: 1.0 Newsgroups: borland.public.jbuilder.java.swing