Skip to main content

Looking for alternative sortable JXTreeTable

2 replies [Last post]
yccheok
Offline
Joined: 2004-05-04

From http://forums.java.net/jive/thread.jspa?threadID=153735&tstart=0, it seems that there is no plan to make JXTreeTable sortable.

From the thread, another alternative is

You could use JXTable & GlazedLists TreeList to make a TreeTable

However, I prefer to have a API which is ready with sortable feature, instead of the need of building by hand.

Is there anyone has success experiment JXTable + GlazedLists TreeList, to make a sortable TreeTable which is equivalent to JXTreeTable, but with sortable feature?

Or, is there any alternative library to JXTreeTable? My client start to complain JXTreeTable is not sortable ;)

Thanks.

Reply viewing options

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

Hello all,

Here is some of the alternative I had found :

http://svn.chorem.org/svn/jtimer/tags/jtimer-1.0-beta4/src/java/org/code...

I had compiled it using SwingX 0.9.6, seem works from initial testing.

Another alternative I had found is non-free version.

http://www.jidesoft.com/products/grids.htm

I had tested with their own tree table demo, quite impressive.

aephyr
Offline
Joined: 2009-11-20

I've posted a free view-based sorting TreeTable over on the regular Swing forums:

http://forums.java.net/jive/thread.jspa?threadID=153823&tstart=0

It is more developed than that post would indicate but still needs testing, volunteers welcome :)

Also, I am trying to decide if automatic node-specific sorting should be supported. It differs from the column header variety in that only the immediate children of a specific node are sorted and takes precedent over any column sorting that may occur before or after. It is kind of awkward trying to provide visual feedback. If you are feeling brave, you can scour the code and turn it on. There are two different implementations: The first is completely commented out in various places in the TreeTable.java file and only allows sorting the tree column. The second implementation allows sorting on any column and is in the BasicTreeTableUI.java file. It can be turned on more easily; just set NODE_SORTING_DISABLED at the top to false. If fully implemented, a sort icon would appear whenever you hover over the "hotspot" where the sort icon would be if that node was sorted.