🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Setting column titles in JTable, TableDialogEditDemo example

#923
From: Richard
Date: Wed, 01 Dec 2004 22:04
21 lines
2032 bytes
"John McGrath [TeamB]" <ng-b@JPMcGrath.net> wrote in message 
news:xn0dqe27g17u5no001@newsgroups.borland.com...
> On 11/29/2004 at 6:07:57 AM, Richard wrote:

> To be a little more precise:  The labels are displayed by a JTableHeader
> component, which is created by the JTable (although you can provide your
> own).  *If* the JTable is placed in the JViewport of a JScrollPane, then
> the JScrollPane will install the JTableHeader into the row header of the
> JScrollPane.  If you do not place the JTable in a JScrollPane, then the
> JTableHeader is not automatically added to the UI.  But if you want, you
> can do that yourself.
>

Ok.  Is there a similarly easy (or at least elegant) way to get row headers 
(i.e., a JLabel name for each row)?  I've searched the newsgroups and the 
help system, and it looks like the only way is to manually use column 1 for 
the row labels.

Thanks,
Richard U. 
Technical Details
Message-ID: <41ae3fd6$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!border2.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
References: <41a8c0a1@newsgroups.borland.com> <41ab0304@newsgroups.borland.com> <xn0dqe27g17u5no001@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 111d45,2ec5ccf013472ede
X-Google-Attributes: gid111d45,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Richard" <rm_ulrich@hotmail.com>
Newsgroups: borland.public.jbuilder.java.swing
References: <41a8c0a1@newsgroups.borland.com> <41ab0304@newsgroups.borland.com> <xn0dqe27g17u5no001@newsgroups.borland.com>
Subject: Re: Setting column titles in JTable, TableDialogEditDemo example
Date: Wed, 1 Dec 2004 17:04:16 -0500
Lines: 23
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
NNTP-Posting-Host: 12.101.9.226
Message-ID: <41ae3fd6$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1101938646 12.101.9.226 (1 Dec 2004 14:04:06 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!border2.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