Java 类org.jfree.ui.SortableTable 实例源码

项目:ccu-historian    文件:SystemProperties.java   
/**
 * Creates and returns a JTable containing all the system properties.  This method returns a
 * table that is configured so that the user can sort the properties by clicking on the table
 * header.
 *
 * @return a system properties table.
 */
public static SortableTable createSystemPropertiesTable() {

    final SystemPropertiesTableModel properties = new SystemPropertiesTableModel();
    final SortableTable table = new SortableTable(properties);

    final TableColumnModel model = table.getColumnModel();
    TableColumn column = model.getColumn(0);
    column.setPreferredWidth(200);
    column = model.getColumn(1);
    column.setPreferredWidth(350);

    table.setAutoResizeMode(JTable.AUTO_RESIZE_SUBSEQUENT_COLUMNS);
    return table;

}
项目:nabs    文件:SystemProperties.java   
/**
 * Creates and returns a JTable containing all the system properties.  This method returns a
 * table that is configured so that the user can sort the properties by clicking on the table
 * header.
 *
 * @return a system properties table.
 */
public static SortableTable createSystemPropertiesTable() {

    final SystemPropertiesTableModel properties = new SystemPropertiesTableModel();
    final SortableTable table = new SortableTable(properties);

    final TableColumnModel model = table.getColumnModel();
    TableColumn column = model.getColumn(0);
    column.setPreferredWidth(200);
    column = model.getColumn(1);
    column.setPreferredWidth(350);

    table.setAutoResizeMode(JTable.AUTO_RESIZE_SUBSEQUENT_COLUMNS);
    return table;

}
项目:proyecto-teoria-control-utn-frro    文件:SystemProperties.java   
/**
 * Creates and returns a JTable containing all the system properties.  This method returns a
 * table that is configured so that the user can sort the properties by clicking on the table
 * header.
 *
 * @return a system properties table.
 */
public static SortableTable createSystemPropertiesTable() {

    final SystemPropertiesTableModel properties = new SystemPropertiesTableModel();
    final SortableTable table = new SortableTable(properties);

    final TableColumnModel model = table.getColumnModel();
    TableColumn column = model.getColumn(0);
    column.setPreferredWidth(200);
    column = model.getColumn(1);
    column.setPreferredWidth(350);

    table.setAutoResizeMode(JTable.AUTO_RESIZE_SUBSEQUENT_COLUMNS);
    return table;

}