Java examples for Swing:JTable Column
force JTable Column Width
//package com.java2s; import javax.swing.table.TableColumn; public class Main { public static void forceColumnWidth(TableColumn column, int columnWidth) { column.setMinWidth(columnWidth); column.setMaxWidth(columnWidth); column.setWidth(columnWidth);/*ww w . j av a 2 s .co m*/ } }