Skip to main content

My first hour with JNTable

1 reply [Last post]
Anonymous

Hi,

after some more investigation, i found out that JNTable is a perfect
integration point for inserting JDNC into my current project. I replaced
my old table with a JNTable variant and fired up my application with
really good results. I instantly got the features of JNTable without
doing too much, besides of invoking some setters on the JNTable.

One of my favourites is: setHasColumnControl()

This is really a rocking feature you guys implemented into the table.
However, i have a question. JNTable itself is a component which uses an
"internal" scrollpane to display the wrapped JXTable. Now when i only
have 4 items in my table, no scrollpane appears, this is ok, but then
the ColumnControl Icon cant display itself and i have lost the function.

I cant change the scrollpane inside JNTable, because its of protected
visibility, so i cant do JScrollPane.VERTICAL_SCROLLBAR_ALWAYS on it.
Is there another way i missed?

Documentation regarding usage of JNTable with the advanced stuff like:

public void setFilters(FilterPipeline pipeline)
public void setHighlighters(HighlighterPipeline pipeline)

is very appreciated. I have some more features in mind like also
displaying an icon in tableHeader when having an active filter on a
column, so that users can see if the current table content is filtered
or not and if its filtered, on what column the filter is pinned.

--
regards
Marc Logemann
http://www.logemann.org
http://www.logentis.de

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

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
rameshgupta
Offline
Joined: 2004-06-04

> One of my favourites is: setHasColumnControl()
>
> This is really a rocking feature you guys implemented
> into the table.
> However, i have a question. JNTable itself is a
> component which uses an
> "internal" scrollpane to display the wrapped JXTable.
> Now when i only
> have 4 items in my table, no scrollpane appears, this
> is ok, but then
> the ColumnControl Icon cant display itself and i have
> lost the function.
>
> I cant change the scrollpane inside JNTable, because
> its of protected
> visibility, so i cant do
> JScrollPane.VERTICAL_SCROLLBAR_ALWAYS on it.
> Is there another way i missed?

No, you haven't missed anything -- We did :-) This is a known problem, and will be fixed soon.

>
> Documentation regarding usage of JNTable with the
> advanced stuff like:
>
> public void setFilters(FilterPipeline pipeline)
> public void setHighlighters(HighlighterPipeline
> pipeline)
>
> is very appreciated.

Yes, that too is high up there on our TBD list :-)

> I have some more features in
> mind like also
> displaying an icon in tableHeader when having an
> active filter on a
> column, so that users can see if the current table
> content is filtered
> or not and if its filtered, on what column the filter
> is pinned.

That is a great idea! However, one of the issues we earlier ran into was conveying information without too much clutter. We already show an icon for the column that is interactively sorted by clicking in the column header, but in the presence of multiple sorters, we do not show which order the columns are sorted in (primary, secondary, tertiary, ...).

If a filter pipeline has multiple filters/sorters on a column, is it appropriate to show icons for all filters in the column header? Perhaps we should try some sketches or mock screen shots?