Article View: borland.public.jbuilder.java.swing
Article #12778Re: how to display a column label in the Jtable
From: Phillipus
Date: Mon, 16 Nov 1998 00:00
Date: Mon, 16 Nov 1998 00:00
17 lines
1030 bytes
1030 bytes
Like this:
JTable table = new JTable();
..........................
JScrollPane sp = new JScrollPane(table);
sp.setColumnHeaderView(table.getTableHeader());
add(sp, BorderLayout.CENTER);
Ramanan Varadarajan wrote:
> How do I display the column label (header) in JTable...?
> do I need to have a spl. renderer for that? is'nt there a default
> implementation
>
> thanks
Technical Details
Message-ID:
<364FFEB8.94D2C501@bangor.ac.uk>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<364CC6D5.58D7085E@lancomp.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,945c37d405dfa498 X-Google-Attributes: gid111d45,public From: Phillipus <p.beauvoir@bangor.ac.uk> Subject: Re: how to display a column label in the Jtable Date: 1998/11/16 Message-ID: <364FFEB8.94D2C501@bangor.ac.uk> X-Deja-AN: 412341125 Content-Transfer-Encoding: 7bit References: <364CC6D5.58D7085E@lancomp.com> To: Ramanan Varadarajan <rvaradar@lancomp.com> Content-Type: text/plain; charset=us-ascii Organization: Another Netscape Collabra Server User Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.swing