🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: JTable Column Headers

#11804
From: George Tryfon
Date: Fri, 26 Mar 1999 00:00
12 lines
881 bytes
Use this:

JTable t = new JTable ();
getContentPane().add (JTable.createScrollPaneForTable(t))

This will make your header to be displayed.

George Tryfon
george@compucon.gr

 >When adding a JTable to a JScrollPane, the JTable column headers are not
 >displayed?  How can I display the column headers?  Thanks...
Technical Details
Message-ID: <7dfpi8$sp011@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <7amvl4$isl14@forums.borland.com> <7atmak$1735@forums.borland.com> <36FAF981.A8F3A7C3@erols.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,decde8f19ba86884
X-Google-Attributes: gid111d45,public
From: "George Tryfon" <george@compucon.gr>
Subject: Re: JTable Column Headers
Date: 1999/03/26
Message-ID: <7dfpi8$sp011@forums.borland.com>
X-Deja-AN: 459299626
References: <7amvl4$isl14@forums.borland.com> <7atmak$1735@forums.borland.com> <36FAF981.A8F3A7C3@erols.com>
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
Organization: Another Netscape Collabra Server User
Newsgroups: borland.public.jbuilder.java.swing