How to sort a multi dimensional array in a table

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • HaifaCarina
    New Member
    • Sep 2007
    • 13

    How to sort a multi dimensional array in a table

    my program asks input (CDtitle, category, container) from the user and shows it in a table.. one of the required functions of my program is to show the sorted input in my table.. how do i do these? in a not so complicated way.. i need help..
  • JosAH
    Recognized Expert MVP
    • Mar 2007
    • 11453

    #2
    If you're using a JTable have a look at its API documentation; it sort of
    naturally leads to the RowSorter and TableRowSorter classes.
    You want to use those; read their API documentation as well.

    kind regards,

    Jos

    Comment

    • HaifaCarina
      New Member
      • Sep 2007
      • 13

      #3
      Originally posted by JosAH
      If you're using a JTable have a look at its API documentation; it sort of
      naturally leads to the RowSorter and TableRowSorter classes.
      You want to use those; read their API documentation as well.

      kind regards,

      Jos
      Thanks Jos! I think you're the only one who always replies to my posts. =)

      Comment

      Working...