Article View: borland.public.jbuilder.java.swing
Article #12417Re: How to get Headers in a JTable
From: Trevor Cohn
Date: Mon, 11 Jan 1999 00:00
Date: Mon, 11 Jan 1999 00:00
26 lines
1442 bytes
1442 bytes
I noticed that, and that under swing 1.0.1 the headers still fail to appear (this bug is fixed under later swing releases). Matt Krevs wrote: > > 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:
<36994648.967AAACE@oz.quests.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<36962CE0.CE61806E@granitsoft.ch> <77b4or$lua9@forums.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: 111d45,c53d9c2a5d111107 X-Google-Attributes: gid111d45,public From: Trevor Cohn <tcohn@oz.quests.com> Subject: Re: How to get Headers in a JTable Date: 1999/01/11 Message-ID: <36994648.967AAACE@oz.quests.com> X-Deja-AN: 431059698 Content-Transfer-Encoding: 8bit References: <36962CE0.CE61806E@granitsoft.ch> <77b4or$lua9@forums.borland.com> X-Accept-Language: en Content-Type: text/plain; charset=iso-8859-1 Organization: Another Netscape Collabra Server User Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.swing