private void fixTooSmallTablePanel() {
		int rowHeight = table.getRowHeight();
		Dimension tableSize = threadedTablePanel.getSize();
		int desiredMinTableHt = rowHeight * 4; // aprox 2 rows + header + filter input
		if (tableSize.height < desiredMinTableHt) {
			Dimension dlgSize = getDialogSize();
			dlgSize.height += (desiredMinTableHt - tableSize.height);
			setDialogSize(dlgSize);
		}
	}
For test/screen shot use

@return button
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/strings/EncodedStringsDialog.java