Here you can find the source of cloneTableColumn(TableColumn c)
public static TableColumn cloneTableColumn(TableColumn c)
//package com.java2s; // modify it under the terms of the GNU General Public License import javax.swing.table.TableColumn; public class Main { public static TableColumn cloneTableColumn(TableColumn c) { TableColumn result = new TableColumn(c.getModelIndex(), c.getPreferredWidth(), c.getCellRenderer(), c.getCellEditor());/*from ww w. j ava 2 s . c o m*/ result.setMaxWidth(c.getMaxWidth()); result.setMinWidth(c.getMinWidth()); result.setResizable(c.getResizable()); result.setHeaderValue(c.getHeaderValue()); result.setHeaderRenderer(c.getHeaderRenderer()); result.setIdentifier(c.getIdentifier()); return result; } }