@Test public void testAdjustColumnPreferredWidths() { JTable table = new JTable(); final TableColumn col = new TableColumn(); col.setHeaderValue("Test"); col.setWidth(1); int w = col.getWidth(); table.addColumn(col); ColumnResizer.adjustColumnPreferredWidths(table); assertTrue(table.getColumn("Test").getWidth() == w); }
public static void adjustColumnPreferredWidths(final JTable table) { adjustColumnPreferredWidths(table, true); }
ColumnResizer { public static void adjustColumnPreferredWidths(final JTable table) { adjustColumnPreferredWidths(table, true); } }
ColumnResizer { public static void adjustColumnPreferredWidths(final JTable table) { adjustColumnPreferredWidths(table, true); } private  ColumnResizer(); }
ColumnResizer { public static void adjustColumnPreferredWidths(final JTable table) { adjustColumnPreferredWidths(table, true); } private  ColumnResizer(); static void adjustColumnPreferredWidths(final JTable table); static void adjustColumnPreferredWidths(final JTable table, final boolean checkAllRows); static void adjustColumnPreferredWidth(final JTable table, final int col); static void adjustColumnPreferredWidth(final JTable table, final int col, final boolean checkAllRows); }
ColumnResizer { public static void adjustColumnPreferredWidths(final JTable table) { adjustColumnPreferredWidths(table, true); } private  ColumnResizer(); static void adjustColumnPreferredWidths(final JTable table); static void adjustColumnPreferredWidths(final JTable table, final boolean checkAllRows); static void adjustColumnPreferredWidth(final JTable table, final int col); static void adjustColumnPreferredWidth(final JTable table, final int col, final boolean checkAllRows);  }