🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

JTable cell formatting

#11642
From: Mike Wolterink
Date: Tue, 04 May 1999 00:00
14 lines
1194 bytes
Hello,

I want to 'format' my Double that I put in the JTable,
i.e.:   400.3000000  becomes 400.3 (I don't want that !!!)
I want to give a precision to the Double (400.30).
When I make a String of it, it aligns to the left and I don't want that
either !
can I set properties for data in columns ?
(alignment, formatting...)


thanks in advance.

Mike
Technical Details
Message-ID: <7gmp1e$opi$1@news.worldonline.nl>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,61d4beeaae1dc2c3,start
X-Google-Attributes: gid111d45,public
X-Google-Thread: 10fd6d,61d4beeaae1dc2c3,start
X-Google-Attributes: gid10fd6d,public
X-Google-Thread: 10a146,61d4beeaae1dc2c3,start
X-Google-Attributes: gid10a146,public
From: "Mike Wolterink" <m.wolterink@nedap.nl>
Subject: JTable cell formatting
Date: 1999/05/04
Message-ID: <7gmp1e$opi$1@news.worldonline.nl>
X-Deja-AN: 473889079
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
X-Complaints-To: abuse@worldonline.nl
X-Trace: news.worldonline.nl 925820782 25394 195.241.204.195 (4 May 1999 12:26:22 GMT)
Organization: WorldOnline News server
NNTP-Posting-Date: 4 May 1999 12:26:22 GMT
Newsgroups: borland.public.jbuilder.java.swing,comp.lang.java.gui,comp.lang.java.programmer