Java JTable Row Sort tryToEnableRowSorting(JTable listTbl)

Here you can find the source of tryToEnableRowSorting(JTable listTbl)

Description

try To Enable Row Sorting

License

Open Source License

Declaration

public static void tryToEnableRowSorting(JTable listTbl) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import javax.swing.JTable;

import javax.swing.table.TableRowSorter;

public class Main {
    public static void tryToEnableRowSorting(JTable listTbl) {

        TableRowSorter sorter = new TableRowSorter(listTbl.getModel());
        listTbl.setRowSorter(sorter);//w  w w .  ja  v  a 2s .c  om

    }
}

Related

  1. createTableRowSorter(Class clazz, TableModel model)
  2. filt(ArrayList selectedLevel, String text, TableRowSorter sorter)
  3. getSortOrder(@Nonnull RowSorter rowSorter, int column)
  4. jtable$setAutoCreateRowSorter(JTable table)
  5. setSortOrder(@Nonnull RowSorter rowSorter, int column, @Nonnull SortOrder sortOrder)