🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Column.setVisible performance problem

#1114
From: Ruben Misrahi
Date: Mon, 05 Apr 2004 17:39
26 lines
1891 bytes
I AM doing it in the DataSet.
DataSet.getColumn(n).setVisible(TriStateProperty.FALSE).


"pnichols" <paul@comp.net> wrote in message
news:406cebd7@newsgroups.borland.com...
> Ruben Misrahi wrote:
>
> > Tough question, as far as I can tell...
> >
> > I need to set the visibility of many columns in a JdbTable to
> > column.setVisible(TriStateProperty.FALSE)
> >
> > This method takes a tremendous amount of time.
> > column.setHidden(true) is very fast, but it doesn't really affect the
> > grid.
> >
> > Other than jdbTable1.setHiddenColumns(new int[1,2,3])...
> >
> > Is there a faster way to hide specific columns? Is this a Java glitch?
>
> Easiest way is o do this from your DataSet, not in the jdbTable, since you
> are first loading the TableModel BEFORE, you affect changes on the
> JdbTable's TableModel and CellEditors/Listeners.
>
>
Technical Details
Message-ID: <40719a7b$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news.glorb.com!cyclone1.gnilink.net!gnilink.net!peer01.cox.net!cox.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <406c3e3c$1@newsgroups.borland.com> <406cebd7@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,ebe1712a9b702ff9
X-Google-Attributes: gid111d45,public
X-Google-ArrivalTime: 2004-04-05 10:55:24 PST
Reply-To: "Ruben Misrahi" <sofsoft@lek.net>
From: "Ruben Misrahi" <sofsoft@lek.net>
Newsgroups: borland.public.jbuilder.java.swing
References: <406c3e3c$1@newsgroups.borland.com> <406cebd7@newsgroups.borland.com>
Subject: Re: Column.setVisible performance problem
Date: Mon, 5 Apr 2004 13:39:52 -0400
Lines: 28
Organization: Celerant
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 67.39.203.105
Message-ID: <40719a7b$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1081186939 67.39.203.105 (5 Apr 2004 10:42:19 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news.glorb.com!cyclone1.gnilink.net!gnilink.net!peer01.cox.net!cox.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail