You can do this without extending SwixML by changing the model and renderer's at form creation time. My code does something similar but I used the Sun class 'TableSorter' which is actually just a table model decorator. This worked out very well because I already had a specialized table model developed.

TableSorter info is here:
http://java.sun.com/docs/books/tutorial/uiswing/components/table.html#sorting

-- Gareth

Dmitri Pissarenko wrote:
Hello!

In one of my applications I have a lot of tables. I want to make them sortable (i. e. the user should be able to sort the table according to a column by clicking the header of that column).

At

http://www.fawcette.com/javapro/2002_08/magazine/columns/visualcomponents/

I found source code of such a sortable table.

All of my UIs is written in SwixML. Therefore I want to extend SwixML so that I can just replace "<table>" by "<sortedtable>" in the XML files.

Has someone already used SwixML for rendering custom components?

TIA

dap

_______________________________________________
Forum mailing list
Forum@carlsbadcubes.com
http://carlsbadcubes.com/mailman/listinfo/forum_carlsbadcubes.com



Reply via email to