private void packColumn()

in src/main/java/idea/plugin/psiviewer/view/PropertySheetPanel.java [143:154]


    private void packColumn(JTable table, int colIndex, int margin)
    {
        int width = Math.max(getColumnHeaderWidth(table, colIndex),
                             getColumnCellWidth(table, colIndex));

        width += 2 * margin;

        TableColumn column = table.getColumnModel().getColumn(colIndex);
        column.setPreferredWidth(width);
        column.setMinWidth(colIndex==0?width:0);
        column.setMaxWidth(colIndex==0?width:Integer.MAX_VALUE);
    }