Here you can find the source of fixedColumSize(TableColumn c, int width)
public static void fixedColumSize(TableColumn c, int width)
//package com.java2s; /**//w w w . j a va2 s. c om * Copyright (C) 2018 Lars Dam * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation version 3.0 * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * See: http://www.gnu.org/licenses/gpl-3.0.html * * Problemen in deze code: * - ... * - ... */ import javax.swing.table.TableColumn; public class Main { public static void fixedColumSize(TableColumn c, int width) { c.setMinWidth(width); c.setMaxWidth(width); } }