Here you can find the source of configureColumn(JTable table, int columnNumber, Integer width, TableCellRenderer renderer, TableCellEditor editor)
public static void configureColumn(JTable table, int columnNumber, Integer width, TableCellRenderer renderer, TableCellEditor editor)
//package com.java2s; //License from project: LGPL import javax.swing.JTable; import javax.swing.table.TableCellEditor; import javax.swing.table.TableCellRenderer; import javax.swing.table.TableColumn; public class Main { public static void configureColumn(JTable table, int columnNumber, Integer width, TableCellRenderer renderer, TableCellEditor editor) { TableColumn column = table.getColumnModel().getColumn(columnNumber); if (width != null) column.setMaxWidth(width);/*ww w . j a v a2s .co m*/ if (renderer != null) column.setCellRenderer(renderer); if (editor != null) column.setCellEditor(editor); } }