🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #12637

Re: Setting Column Widths in JTable

#12637
From: Petr Srajer
Date: Fri, 04 Dec 1998 00:00
25 lines
1279 bytes
Marc Maman wrote:

> The following code works fine with the applet viewer and also with
> Netscape when run as an applet. However, it does not work with Sun's
> Java plug-in for Netscape. Any ideas?
>
>       final static String[] column_labels =
>       {
>         "COLUMNA", "COLUMNB", "COLUMNC", "COLUMND", "COLUMNE"
>       };
>       final static int[] column_widths =
>       {
>         70, 70, 420, 70, 70
>       };
>
>          for (int i=0; i<column_widths.length; i++)
>          {
>                  TableColumn column = jTable1.getColumn( column_labels[
> i ] );
>                  column.setWidth( column_widths[i] );
>          }

    If you need help please specify more problem.(console listing , ...)

            Petr.
Technical Details
Message-ID: <3667A4E3.7EABC162@ais.cz>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <3666AEBB.4B3B8D34@hypercon.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,7cd3722a73fee868
X-Google-Attributes: gid111d45,public
From: Petr Srajer <Petr.Srajer@ais.cz>
Subject: Re: Setting Column Widths in JTable
Date: 1998/12/04
Message-ID: <3667A4E3.7EABC162@ais.cz>
X-Deja-AN: 418542427
Content-Transfer-Encoding: 7bit
References: <3666AEBB.4B3B8D34@hypercon.com>
Content-Type: text/plain; charset=us-ascii
Organization: AIS Software s.r.o.
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.swing