🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #15209

Re: JTable column labels

#15209
From: Leo Cohen
Date: Mon, 05 Jul 1999 00:00
26 lines
1395 bytes
Steve: Thanks for the JTable header hint. Dropping it into a scroll pane is
just what the doctor ordered.

Leo.

**********

Steve Horsley wrote:

> I don't think a naked JTable will display its column names.
> However...
> If you drop it into a JScrollPane, bingo! The JScrollPane shows
> the column-names, and they don't scroll with the table. They're
> draggable so you can re-order the display, too.
>
> I think a JTable is intended to be dropped in a JScrollPane as
> a matter of course.
>
> Steve
> //----------------------
> Leo Cohen wrote:
> >
> > What does it take to get a label onto a column in a JTable? Everything I
> > read tells me that getColumnName(columnIndex) in the table model
> > interface is supposed to do it, but I get the table without any labels.
> >
Technical Details
Message-ID: <3780CE02.FA6E6F61@cs.virginia.edu>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <37725727.DE4B895F@cs.virginia.edu> <377364B1.76154AE7@cwcom.co.uk>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,4d7acf1287ef3fd
X-Google-Attributes: gidf74b3,public
From: Leo Cohen <lcohen@cs.virginia.edu>
Subject: Re: JTable column labels
Date: 1999/07/05
Message-ID: <3780CE02.FA6E6F61@cs.virginia.edu>
X-Deja-AN: 497385440
Content-Transfer-Encoding: 7bit
References: <37725727.DE4B895F@cs.virginia.edu> <377364B1.76154AE7@cwcom.co.uk>
X-Accept-Language: en
Content-Type: text/plain; charset=us-ascii
Organization: Another Netscape Collabra Server User
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.language