private void selectedRowChange() {
		int rowCount = table.getRowCount();
		int selectedRowCount = table.getSelectedRowCount();
		setCreateButtonInfo(rowCount, selectedRowCount);
		if (selectedRowCount == 1 && tableModel.getProgram() != null) {
			int[] selectedRows = table.getSelectedRows();
			table.navigate(selectedRows[0], 0 /* location col */);
		}
	}
For test/screen shot use

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