@Override
	public Dimension getPreferredScrollableViewportSize() {
		Dimension size = super.getPreferredScrollableViewportSize();
		if (visibleRowCount != null) {
			int height = getRowHeight() * visibleRowCount.intValue();
			size.height = Math.max(size.height, height);
		}
		return size;
	}
Constructs a new GTable using the specified table model.
@param dm the table model
Ghidra/Framework/Docking/src/main/java/docking/widgets/table/GTable.java