get Table Column from JTable - Java Swing

Java examples for Swing:JTable Column

Description

get Table Column from JTable

Demo Code


//package com.java2s;

import javax.swing.JTable;

import javax.swing.table.TableColumn;

public class Main {
    public static TableColumn getTableColumn(JTable table,
            int graphicalColumnIndex) {
        return table.getColumnModel().getColumn(graphicalColumnIndex);
    }/*ww w  .  j a  va 2  s . co  m*/
}

Related Tutorials