Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import javax.swing.JTable;

import javax.swing.table.TableColumn;

public class Main {
    public static void removeTableColumn(JTable table, String columnIdentifier) {

        try {

            TableColumn column = table.getColumn(columnIdentifier);

            table.getColumnModel().removeColumn(column);

        } catch (Exception ex) {

        }

    }
}