Article View: borland.public.jbuilder.java.swing
Article #12740JTable Column Headers in Windows NT
From: Terry Daniels
Date: Tue, 10 Nov 1998 00:00
Date: Tue, 10 Nov 1998 00:00
17 lines
1161 bytes
1161 bytes
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:
<364862C5.5572676A@qgraph.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,2fd4a94d43934861,start X-Google-Attributes: gid111d45,public From: Terry Daniels <tadaniels@qgraph.com> Subject: JTable Column Headers in Windows NT Date: 1998/11/10 Message-ID: <364862C5.5572676A@qgraph.com> X-Deja-AN: 410348815 Content-Transfer-Encoding: 7bit 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