🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: how to display a column label in the Jtable

#12774
From: Matt Krevs
Date: Mon, 16 Nov 1998 00:00
14 lines
995 bytes
Have you added your JTable to a JScrollPane? Usually if the column headers
dont display it is because you are directly adding the table to a container.

You need to add your tabel to a scrollpane and then add the scrollpane to
the container

Ramanan Varadarajan wrote in message <364CC6D5.58D7085E@lancomp.com>...
>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: <72nh0g$o931@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <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: "Matt Krevs" <mattkrevs@flex.com.au>
Subject: Re: how to display a column label in the Jtable
Date: 1998/11/16
Message-ID: <72nh0g$o931@forums.borland.com>
X-Deja-AN: 412169790
References: <364CC6D5.58D7085E@lancomp.com>
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
Organization: Another Netscape Collabra Server User
Newsgroups: borland.public.jbuilder.java.swing