Dimension () { Dimension superSize = super.getMinimumSize(); if (myMinHeightInRows == -1) return superSize; int rowCount = getRowCount(); if (rowCount == 0) return superSize; double rowHeight = getRowBounds(0).getHeight(); return new Dimension(superSize.width, (int)(rowHeight * myMinHeightInRows)); }