JXTable can be used with any TableModel - the example provides a simple data array instead of a DefaultTableModel. A Highlighter is used for the alternating row background color and the ColumnControlButton is set to visible to enable additional table functions. Click on the table header to activate sorting for the specified column.
All relevant lines are highlighted. Press the "Run..." button to start the example.