/** * Sets preferred row heights for all visible rows. * * @param table the table to set row heights to * @throws NullPointerException if no table installed. */ public static void setPreferredRowHeights(JTable table) { // care about visible rows only for (int row = 0; row < table.getRowCount(); row++) { setPreferredRowHeight(table, row); } }
/** * Sets preferred row heights for all visible rows. * * @param table the table to set row heights to * @throws NullPointerException if no table installed. */ public static void setPreferredRowHeights(JTable table) { // care about visible rows only for (int row = 0; row < table.getRowCount(); row++) { setPreferredRowHeight(table, row); } }
/** * Sets preferred row heights for all visible rows. * * @param table the table to set row heights to * @throws NullPointerException if no table installed. */ public static void setPreferredRowHeights(JTable table) { // care about visible rows only for (int row = 0; row < table.getRowCount(); row++) { setPreferredRowHeight(table, row); } }
/** * Sets preferred row heights for all visible rows. * * @param table the table to set row heights to * @throws NullPointerException if no table installed. */ public static void setPreferredRowHeights(JTable table) { // care about visible rows only for (int row = 0; row < table.getRowCount(); row++) { setPreferredRowHeight(table, row); } }
/** * Sets the row heights of the rows in the range of first- to lastRow, inclusive. * The coordinates are model indices. * * @param firstRow the first row in model coordinates * @param lastRow the last row in model coordinates */ protected void updatePreferredRowHeights(int firstRow, int lastRow) { for (int row = firstRow; row <= lastRow; row++) { int viewRow = table.convertRowIndexToView(row); if (viewRow >= 0) { // int oldHeight = table.getRowHeight(viewRow); // LOG.info("in viewRow/old/new: " + viewRow + " / " + oldHeight + " / " + table.getRowHeight(viewRow)); setPreferredRowHeight(table, viewRow); } } }
/** * Sets the row heights of the rows in the range of first- to lastRow, inclusive. * The coordinates are model indices. * * @param firstRow the first row in model coordinates * @param lastRow the last row in model coordinates */ protected void updatePreferredRowHeights(int firstRow, int lastRow) { for (int row = firstRow; row <= lastRow; row++) { int viewRow = table.convertRowIndexToView(row); if (viewRow >= 0) { // int oldHeight = table.getRowHeight(viewRow); // LOG.info("in viewRow/old/new: " + viewRow + " / " + oldHeight + " / " + table.getRowHeight(viewRow)); setPreferredRowHeight(table, viewRow); } } }
/** * Sets the row heights of the rows in the range of first- to lastRow, inclusive. * The coordinates are model indices. * * @param firstRow the first row in model coordinates * @param lastRow the last row in model coordinates */ protected void updatePreferredRowHeights(int firstRow, int lastRow) { for (int row = firstRow; row <= lastRow; row++) { int viewRow = table.convertRowIndexToView(row); if (viewRow >= 0) { // int oldHeight = table.getRowHeight(viewRow); // LOG.info("in viewRow/old/new: " + viewRow + " / " + oldHeight + " / " + table.getRowHeight(viewRow)); setPreferredRowHeight(table, viewRow); } } }
/** * Sets the row heights of the rows in the range of first- to lastRow, inclusive. * The coordinates are model indices. * * @param firstRow the first row in model coordinates * @param lastRow the last row in model coordinates */ protected void updatePreferredRowHeights(int firstRow, int lastRow) { for (int row = firstRow; row <= lastRow; row++) { int viewRow = table.convertRowIndexToView(row); if (viewRow >= 0) { // int oldHeight = table.getRowHeight(viewRow); // LOG.info("in viewRow/old/new: " + viewRow + " / " + oldHeight + " / " + table.getRowHeight(viewRow)); setPreferredRowHeight(table, viewRow); } } }