Article View: borland.public.jbuilder.java.swing
Article #315Re: Abstract Table Model
From: George
Date: Wed, 10 Aug 2005 13:52
Date: Wed, 10 Aug 2005 13:52
26 lines
1790 bytes
1790 bytes
Pl disregard this post. It was sent in error.
"George" <gxavier@hotmail.com> wrote in message
news:42fa0637$1@newsgroups.borland.com...
> My table has only column of integers which I'd like to be right aligned;
so
> I override getColumnClass in my AbstractTableModel subclass as follows:
>
> public Class<?> getColumnClass(int col) {
> return Integer.class;
> }
>
> When I do this the table is displayed with all cells blank. If I comment
> out this method the cell values are displayed but the values are
> left-aligned which doesn't look very nice.
>
> I was using this method routinely until they "generified" this method in
> 1.5. Any help on how to use the above method correctly will be
appreciated.
>
> TIA
> George
>
>
Technical Details
Message-ID:
<42fa06aa$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!proxad.net!feeder3.cambrium.nl!feed.tweaknews.nl!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<42fa0637$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 111d45,c5839157efe95c38,start X-Google-Attributes: gid111d45,public X-Google-Language: ENGLISH,ASCII-7-bit From: "George" <gxavier@hotmail.com> Newsgroups: borland.public.jbuilder.java.swing References: <42fa0637$1@newsgroups.borland.com> Subject: Re: Abstract Table Model Date: Wed, 10 Aug 2005 09:52:43 -0400 Lines: 28 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 216.163.255.1 Message-ID: <42fa06aa$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1123681962 216.163.255.1 (10 Aug 2005 06:52:42 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!proxad.net!feeder3.cambrium.nl!feed.tweaknews.nl!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail