Package org.springframework.richclient.table

Examples of org.springframework.richclient.table.TableSortIndicator


    columnModel = new DefaultTableColumnModel();
    // create the sortable model by wrapping our simple custom model
    sortedModel = new ShuttleSortableTableModel(new CustomerTableModel());
    table = new JTable(sortedModel, columnModel);
    table.setAutoCreateColumnsFromModel(false);
    TableSortIndicator sortIndicator = new TableSortIndicator(table);
    new SortTableCommand(table, sortIndicator.getColumnSortList());
    JScrollPane scrollPane = new JScrollPane(table);
    CellConstraints cc = new CellConstraints();
    panel.add(scrollPane, cc.xyw(1, 1, 3));
    panel.add(createAddCommand().createButton(), cc.xy(1, 3));
    panel.add(createRemoveCommand().createButton(), cc.xy(3, 3));
View Full Code Here

TOP

Related Classes of org.springframework.richclient.table.TableSortIndicator

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.