Article View: borland.public.jbuilder.java.swing
Article #10033Re: JTable doesn't show header?
From: Wendy Lin
Date: Tue, 23 Nov 1999 00:00
Date: Tue, 23 Nov 1999 00:00
26 lines
1449 bytes
1449 bytes
You need to place JTable in a JScrollPane. JScrollPane is now responsible for painting column headers as well as scroll bars. --Wendy JBuilder QA Henrik G๏ฟฝransson <i95_gok@i.kth.se> wrote in message news:81f3eo$i48@forums.borland.com... > I've been trying to use a JTable in my application, but can't work out how > to get the table to show it's header. Not even the simplest table will do > this. > > In examples I've been looking at there aren't many comments about this and > it seems like the JTable will show it's header by default, but mine won't > however I try. Whether the columnNames are given by default or set by me, > the method getColumnName seems to return a correct value. > > Is there some major point I've overlooked? I would be very grateful if > someone could help me with this problem, I've really tried everything I can > think of. > > Thanks for your response on advance. > /Henrik Goransson > >
Technical Details
Message-ID:
<81fd2h$2hd8@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<81f3eo$i48@forums.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: 111d45,8ccede5a30480efd X-Google-Attributes: gid111d45,public From: " Wendy Lin" <wlin@borland.com> Subject: Re: JTable doesn't show header? Date: 1999/11/23 Message-ID: <81fd2h$2hd8@forums.borland.com> X-Deja-AN: 552302012 References: <81f3eo$i48@forums.borland.com> X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211 Organization: Borland X-MSMail-Priority: Normal Newsgroups: borland.public.jbuilder.java.swing