🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: How to get Headers in a JTable

#12416
From: Matt Krevs
Date: Mon, 11 Jan 1999 00:00
19 lines
1152 bytes
To show the headers, add your JTable to a JScrollPane and then add the
JScrollPane to your container
If you add the JTable to the container directly then column headers will not
appear.

Manuel K�gi wrote in message <36962CE0.CE61806E@granitsoft.ch>...
>Hi
>
>can anybody tell me how I have to implement the AbstractTableModel that
>the JTable shows the Headers ?
>My Table alway shows only the datapart.
>I already overridden following functions :
>        getColumnCount, getRowCount, getValueAt, getColumnName,
>getColumnClass, isCellEditable, setValueAt
>
>Actually I don't get really what I have to return at getColumnClass.
>
>
>
Technical Details
Message-ID: <77b4or$lua9@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <36962CE0.CE61806E@granitsoft.ch>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 111d45,c53d9c2a5d111107
X-Google-Attributes: gid111d45,public
From: "Matt Krevs" <mattkrevs@flex.com.au>
Subject: Re: How to get Headers in a JTable
Date: 1999/01/11
Message-ID: <77b4or$lua9@forums.borland.com>
X-Deja-AN: 430998079
References: <36962CE0.CE61806E@granitsoft.ch>
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
Organization: Another Netscape Collabra Server User
Newsgroups: borland.public.jbuilder.java.swing