Here you can find the source of getRealColumnPos(int colPos, JTable table)
public static int getRealColumnPos(int colPos, JTable table)
//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 }