🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: JTable row header

#556
From: John McGrath
Date: Fri, 01 Jul 2005 19:26
17 lines
1441 bytes
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: <xn0e48f83jlqa7p004@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!news-out.nntp.be!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <42c42abf@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: "John McGrath" <ng@jpmcgrath.net>
Subject: Re: JTable row header
Newsgroups: borland.public.jbuilder.java.swing
References: <42c42abf@newsgroups.borland.com>
User-Agent: XanaNews/1.17.5.7
Message-ID: <xn0e48f83jlqa7p004@newsgroups.borland.com>
X-Ref: newsgroups.borland.com ~XNS:00000453
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-15
NNTP-Posting-Host: 151.197.12.30
Date: 1 Jul 2005 12:26:01 -0700
X-Trace: newsgroups.borland.com 1120245961 151.197.12.30 (1 Jul 2005 12:26:01 -0700)
Lines: 17
X-Authenticated-User: jpmcgrath
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!news-out.nntp.be!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail