Article View: comp.lang.java.gui
Article #55JTable & JScrollPane
From: Raf Lenaerts
Date: Wed, 08 Sep 1999 00:00
Date: Wed, 08 Sep 1999 00:00
11 lines
1121 bytes
1121 bytes
Hi, I have written a MyTable (extending JTable) with MyTableModel and MyTreeCellRenderer. The data that gets displayed is correct, but I am having troubles with the displaying of the data. All columns have a fixed width (I don't know why) and don't adjust to the width of my table. Either their is some space after the last column, or the last column does not get displayed. If I put the MyTable in a JScrollPane then there are never any scrollbars. Does anybody know how I can solve this problem?? Raf.
Technical Details
Message-ID:
<7r5lih$9n7$1@news3.Belgium.EU.net>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,27c1ee62fab07e84,start X-Google-Attributes: gid111d45,public X-Google-Thread: 10fd6d,27c1ee62fab07e84,start X-Google-Attributes: gid10fd6d,public From: "Raf Lenaerts" <raf.lenaerts@student.luc.ac.be> Subject: JTable & JScrollPane Date: 1999/09/08 Message-ID: <7r5lih$9n7$1@news3.Belgium.EU.net> X-Deja-AN: 522511616 X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211 Organization: EUnet Belgium, Leuven, Belgium X-MSMail-Priority: Normal Newsgroups: comp.lang.java.gui,borland.public.jbuilder.java.swing