Q:

The sort-by-XXX-button

Is there an easy, simple, way to do create buttons for sorting lists by name, size etc just like these:
http://lh6.ggpht.com/_SU7V9sPwn1o/TUmfW_qBiCI/AAAAAAAABTo/9CJYApWzMfI/s1600/Task-manager-IE-memory7.png
(Image name, User namne, SPU etc.)
I want to do a list with such buttons but I assume there must be an easy way to implement there buttons.
PS, using swing!

A:

You could do this by implementing JTables using java swing.
Check out these docs.

