Article View: borland.public.jbuilder.java.language
Article #15231Re: JTable column labels
From: Steve Horsley
Date: Fri, 25 Jun 1999 00:00
Date: Fri, 25 Jun 1999 00:00
17 lines
1173 bytes
1173 bytes
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:
<377364B1.76154AE7@cwcom.co.uk>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<37725727.DE4B895F@cs.virginia.edu>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,4d7acf1287ef3fd X-Google-Attributes: gidf74b3,public From: Steve Horsley <steve.horsley@cwcom.co.uk> Subject: Re: JTable column labels Date: 1999/06/25 Message-ID: <377364B1.76154AE7@cwcom.co.uk> X-Deja-AN: 493731272 Content-Transfer-Encoding: 7bit References: <37725727.DE4B895F@cs.virginia.edu> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii Organization: Cable & Wireless Communications Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.language