Thread View: borland.public.jbuilder.java.swing
3 messages
3 total messages
Started by Ruben Misrahi
Thu, 01 Apr 2004 16:09
Column.setVisible performance problem
Author: Ruben Misrahi
Date: Thu, 01 Apr 2004 16:09
Date: Thu, 01 Apr 2004 16:09
11 lines
1326 bytes
1326 bytes
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?
Re: Column.setVisible performance problem
Author: pnichols
Date: Fri, 02 Apr 2004 04:48
Date: Fri, 02 Apr 2004 04:48
18 lines
1622 bytes
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.
Re: Column.setVisible performance problem
Author: Ruben Misrahi
Date: Mon, 05 Apr 2004 17:39
Date: Mon, 05 Apr 2004 17:39
26 lines
1891 bytes
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. > >
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads