Sort rows in a table

i have a table, where the cells are populated by String returns from a SQL statement.

The table populates fine and all information is correctly displayed, but is there anyway to sort the rows of the table once they are populated?

i have an amount column in the table and i want to be able to sort the table in order of highest amount first...this doesnt need to be changeable later by the user, it just needs to be sorted on display......any one have any ideas?

[480 byte] By [chiggy99a] at [2007-11-26 22:47:18]
# 1

Sounds like your easiest solution is to use the ORDER BY clause in your SQL statement:

http://www.w3schools.com/sql/sql_orderby.asp

If that won't do the trick, this might help:

http://java.sun.com/docs/books/tutorial/uiswing/components/table.html

(see Sorting and Otherwise Manipulating Data toward the bottom)

BinaryDigita at 2007-7-10 12:06:11 > top of Java-index,Desktop,Core GUI APIs...
# 2
Four questions asked. Not once have you bothered to reply to your posting to thank people for the help given.You are on your own from now on as far as I'm concerned.
camickra at 2007-7-10 12:06:11 > top of Java-index,Desktop,Core GUI APIs...