private void setActionItemEnablement(boolean enabled) {
		createButton.setEnabled(enabled);
		cancelButton.setEnabled(enabled);
		table.removeNavigation();
		if (enabled) {
			table.installNavigation(tool);
		}
	}
For test/screen shot use

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