Article View: borland.public.jbuilder.java.swing
Article #12743Re: JTable Column Headers in Windows NT
From: Terry Daniels
Date: Tue, 10 Nov 1998 00:00
Date: Tue, 10 Nov 1998 00:00
26 lines
1408 bytes
1408 bytes
Never mind...
I found the answer somewhere else.
http://developer.java.sun.com/developer/techDocs/SearchData/dd/jfc/62.html
Terry
Terry Daniels wrote:
>
> Does anyone have any idea why I can't see column headers in Windows NT
> using the swing JTable component? My sample code looks like this...
>
> String[][] data = {
> {"one", "two", "three"},
> {"four", "five", "six"},
> {"seven", "eight", "nine"}
> };
> String[] names = {"Column1", "Column2", "Column3"};
> JTable jTable1 = new JTable(data, names);
> JScrollPane jScrollPane1 = new JScrollPane(jTable1);
>
> The JScrollPane is then added to a frame. It works fine Linux, but the
> column headers in NT don't show up.
>
> Terry
Technical Details
Message-ID:
<36488717.9C8CEE66@qgraph.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<364862C5.5572676A@qgraph.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,2fd4a94d43934861 X-Google-Attributes: gid111d45,public From: Terry Daniels <tadaniels@qgraph.com> Subject: Re: JTable Column Headers in Windows NT Date: 1998/11/10 Message-ID: <36488717.9C8CEE66@qgraph.com> X-Deja-AN: 410400334 Content-Transfer-Encoding: 7bit References: <364862C5.5572676A@qgraph.com> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii Organization: Quad/Graphics,Inc. Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.swing