Article View: borland.public.jbuilder.java.swing
Article #7641Thanks for the re-assurance
From: Steve Swett
Date: Wed, 10 Jan 2001 21:02
Date: Wed, 10 Jan 2001 21:02
23 lines
1623 bytes
1623 bytes
I had simplified the code as you suggested and had the import statement there OK. Problem was that I had things out of sequence. The preferred width should only be set after the table has been added to the panel. I was trying to set it before hand. Problem now solved. Thanks. Torsten Welches wrote in message <3a5c51f3$1_1@dnews>... > >make that > table.getColumnModel().getColumn(1).setPreferredWidth(50); > >"Torsten Welches" <torsten.welches@who.cares.netcologne.de> wrote: >> >>Steve, >> >>the snippet is fine. >>My bet is a missing "import javax.swing.table.*;" ;-) >>If not please post your surrounding code. >> >>If you don't explicitly set a model JTable provides a >>DefaultTableModel for you. >>
Technical Details
Message-ID:
<3a5ccd64$1_1@dnews>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!news.cs.utwente.nl!newsgate.cistron.nl!transit.news.xs4all.nl!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!neel.uni2.net!newssuck.uni2.dk!bornews.borland.com!dnews!199.176.229.81References:
<3a5c3183_2@dnews> <3a5c5186_1@dnews> <3a5c51f3$1_1@dnews>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,72d904887cb9b6b9 X-Google-Attributes: gid111d45,public X-Google-ArrivalTime: 2001-01-10 13:18:47 PST From: "Steve Swett" <swett@ncats.net> Newsgroups: borland.public.jbuilder.java.swing References: <3a5c3183_2@dnews> <3a5c5186_1@dnews> <3a5c51f3$1_1@dnews> Subject: Thanks for the re-assurance Date: Wed, 10 Jan 2001 16:02:11 -0500 Lines: 26 X-Newsreader: Microsoft Outlook Express 4.72.3155.0 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3155.0 NNTP-Posting-Host: 199.176.229.81 Message-ID: <3a5ccd64$1_1@dnews> X-Trace: 10 Jan 2001 13:00:20 -0800, 199.176.229.81 Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!news.cs.utwente.nl!newsgate.cistron.nl!transit.news.xs4all.nl!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!neel.uni2.net!newssuck.uni2.dk!bornews.borland.com!dnews!199.176.229.81