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.TableCellEditor;

public class Main {
    public static void setTableCellEditor(JTable table, String columnIdentifier, TableCellEditor cellEditor) {

        try {

            table.getColumn(columnIdentifier).setCellEditor(cellEditor);

        } catch (IllegalArgumentException e) {

        }

    }
}