Java JTable Column getRealColumnPos(int colPos, JTable table)

Here you can find the source of getRealColumnPos(int colPos, JTable table)

Description

get Real Column Pos

License

Open Source License

Declaration

public static int getRealColumnPos(int colPos, JTable table) 

Method Source Code

//package com.java2s;

import javax.swing.JTable;

public class Main {

    public static int getRealColumnPos(int colPos, JTable table) {
        // System.out.println("getRealColumnPos ==> colPos == " + colPos);
        return table.convertColumnIndexToModel(colPos);
    }//  www  .j  a va2 s.co m
}

Related

  1. getColumnIndexFromName(TableModel tableModel, String columnToRemove)
  2. getColumnNames(TableModel tableModel)
  3. getColumnOrder(final JTable table)
  4. getColumns(TableColumnModel columnModel)
  5. getMultiLineColumnNames(String[] ret)
  6. getRenderedComponentAt(JTable table, int row, int column)
  7. getTableColumn(JTable table, int columnIndex)
  8. hideColumn(JTable table, int columnIndex)
  9. installDelegatingColumn(TableColumn column, String label)