Skip to main content

JNTable: hasColumnControl feature broken when used with Filters

4 replies [Last post]
thughes
Offline
Joined: 2006-02-17

I have a JNTable, with setHasColumnControl(true);

This works fine.

When I add a FilterPipeline using setFilters(), (consisting of 2 PatternFilters, 1 on column 0, and 1 on column 3), the feature is broken. Specifically, removing a column will uncheck it in the pop-up box, but not remove it from the table. If I check the column in the box again, the column is added back to the table, and so I now have 2 copies of that column in the table. If I then uncheck the column again, the second copy is actually removed.

Apologies if this bug has already been logged, I couldn't find a similar query.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Kleopatra

jdnc-interest@javadesktop.org wrote:
> I have also found that setting Filters on a JNTable
> (that has custom cell renderer's) makes the
> table loose the custom-cell renderer information as well.

is that related to the hasColumnControl() or always? Whatever, sounds
like a bug as well, so would you please file the issue, preferably with
a small example (or a test fixture along the lines of a
interactiveTestXX in JNTableUnitTest)?

Thanks

Jeanette

---------------------------------------------------------------------
To unsubscribe, e-mail: jdnc-unsubscribe@jdnc.dev.java.net
For additional commands, e-mail: jdnc-help@jdnc.dev.java.net

Kleopatra

jdnc-interest@javadesktop.org wrote:

Hi Tony,

[.. complete description .. ]

Sounds like a bug to me - and can be reproduced in JNTableUnitTest in
with interactiveTestJNTableFiltering.

>
> Apologies if this bug has already been logged,
> couldn't find a similar query.

Nothing filed yet (me too, could not find any mention of it :-) - would
you please add an bug in the issue tracker?

Thanks

Jeanette

---------------------------------------------------------------------
To unsubscribe, e-mail: jdnc-unsubscribe@jdnc.dev.java.net
For additional commands, e-mail: jdnc-help@jdnc.dev.java.net

dnautiyal
Offline
Joined: 2003-10-27

I have also found that setting Filters on a JNTable (that has custom cell renderer's) makes the table loose the custom-cell renderer information as well.

TCWinner
Offline
Joined: 2006-02-17

I have had exactly the same problem. It occurs on both the JNTable.getTable().getColumn as well as JNTable.getColumn() so it appears not to work on either its underlying JTable or itself. Is this a bug or are we all doing it incorrectly?