Article View: borland.public.jbuilder.java.swing
Article #921Re: Setting column titles in JTable, TableDialogEditDemo example
From: Richard
Date: Mon, 29 Nov 2004 11:07
Date: Mon, 29 Nov 2004 11:07
12 lines
1452 bytes
1452 bytes
The answer to my own question: the labels are displayed by the JScrollPane rather than the JTable, and then only if the table is used when the JScrollPane is created: > > //Create the scroll pane and add the table to it. > JScrollPane scrollPane = new JScrollPane(table); The comment above is misleading, as first creating the JScrollPane and then adding the table (as one might do in the designer) doesn't suffice. R
Technical Details
Message-ID:
<41ab0304@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!proxad.net!proxad.net!194.117.148.138.MISMATCH!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<41a8c0a1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 111d45,2ec5ccf013472ede X-Google-Attributes: gid111d45,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Richard" <rm_ulrich@hotmail.com> Newsgroups: borland.public.jbuilder.java.swing References: <41a8c0a1@newsgroups.borland.com> Subject: Re: Setting column titles in JTable, TableDialogEditDemo example Date: Mon, 29 Nov 2004 06:07:57 -0500 Lines: 14 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-RFC2646: Format=Flowed; Response X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 NNTP-Posting-Host: 12.101.9.226 Message-ID: <41ab0304@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1101726468 12.101.9.226 (29 Nov 2004 03:07:48 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!proxad.net!proxad.net!194.117.148.138.MISMATCH!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail