Here you can find the source of getTableColumn(JTable table, int columnIndex)
public static TableColumn getTableColumn(JTable table, int columnIndex)
//package com.java2s; /*!// w ww.j av a 2s .co m * mifmi-commons4j * https://github.com/mifmi/mifmi-commons4j * * Copyright (c) 2015 mifmi.org and other contributors * Released under the MIT license * https://opensource.org/licenses/MIT */ import javax.swing.JTable; import javax.swing.table.TableColumn; public class Main { public static TableColumn getTableColumn(JTable table, int columnIndex) { if (table == null) { throw new NullPointerException(); } String columnName = table.getColumnName(columnIndex); if (columnName == null) { return null; } TableColumn column = table.getColumn(columnName); return column; } }