Here you can find the source of ponerAncho(TableColumn loColumn, int plAncho)
public static void ponerAncho(TableColumn loColumn, int plAncho)
//package com.java2s; //License from project: Open Source License import javax.swing.table.TableColumn; public class Main { public static void ponerAncho(TableColumn loColumn, int plAncho) { if (plAncho == 0) { //invisibles las 2 primeras columnas loColumn.setMinWidth(0);/* w ww . j a v a 2s . co m*/ loColumn.setPreferredWidth(0); loColumn.setWidth(0); loColumn.setMaxWidth(0); } else { loColumn.setPreferredWidth(plAncho); loColumn.setWidth(plAncho); } } }