org.jfree.ui

Class SortableTable


public class SortableTable
extends JTable

A simple extension of JTable that supports the use of a SortableTableModel.
Author:
David Gilbert

Constructor Summary

SortableTable(SortableTableModel model)
Standard constructor - builds a table for the specified model.

Method Summary

void
setSortableModel(SortableTableModel model)
Changes the model for the table.

Constructor Details

SortableTable

public SortableTable(SortableTableModel model)
Standard constructor - builds a table for the specified model.
Parameters:
model - the data.

Method Details

setSortableModel

public void setSortableModel(SortableTableModel model)
Changes the model for the table. Takes care of updating the header listener at the same time.
Parameters:
model - the table model.