🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Column.setVisible performance problem

#1111
From: pnichols
Date: Fri, 02 Apr 2004 04:48
18 lines
1622 bytes
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: <406cebd7@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <406c3e3c$1@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-01 20:39:45 PST
Message-ID: <406cebd7@newsgroups.borland.com>
From: pnichols <paul@comp.net>
Subject: Re: Column.setVisible performance problem
Newsgroups: borland.public.jbuilder.java.swing
Reply-To: paul@comp.net
Mail-Copies-To: paul@comp.net
Date: Thu, 01 Apr 2004 23:48:19 -0500
References: <406c3e3c$1@newsgroups.borland.com>
Lines: 20
Organization: clc
User-Agent: KNode/0.7.6
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7Bit
NNTP-Posting-Host: 68.71.188.25
X-Trace: newsgroups.borland.com 1080880087 68.71.188.25 (1 Apr 2004 20:28:07 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail