🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: JTable row header

#465
From: George
Date: Tue, 05 Jul 2005 16:35
26 lines
1902 bytes
Of the things that I tried,  I think I like the look of the JLabels in
JPanel.  Would getting the JLabel from a CellRenderer object take care of
the scaleability issue?

TIA
George

"John McGrath" <ng@jpmcgrath.net> wrote in message
news:xn0e48f83jlqa7p004@newsgroups.borland.com...
> On 6/30/2005 at 1:24:03 PM, George wrote:
>
> > Is there a "recommended" way to implement row headers for JTable?
> >
> > I tried using a JPanel containing JLabels and controlled by a
> > GridBagLayout manager.  But GBL apparently cannot handle grids sizes
> > larger than 512.
>
> If that was the only issue, you could use a different layout, such as a
> BoxLayout or a GridLayout.  But creating a separate JLabel component for
> each row will have scalability problems.  I would try using another JTable
> with a single column for the row header.
>
> -- 
> Regards,
>
> John McGrath
Technical Details
Message-ID: <42cab6c3$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!feed5.newsreader.com!newsreader.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <42c42abf@newsgroups.borland.com> <xn0e48f83jlqa7p004@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 111d45,23a63f94c04b7c9a
X-Google-Attributes: gid111d45,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "George" <gxavier@hotmail.com>
Newsgroups: borland.public.jbuilder.java.swing
References: <42c42abf@newsgroups.borland.com> <xn0e48f83jlqa7p004@newsgroups.borland.com>
Subject: Re: JTable row header
Date: Tue, 5 Jul 2005 12:35:16 -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: <42cab6c3$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1120581315 216.163.255.1 (5 Jul 2005 09:35:15 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!feed5.newsreader.com!newsreader.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail