private void setRowVisibility(int rowNum, boolean b) {
		Component leftComp = optionsPanel.getComponent(rowNum * 2);
		leftComp.setVisible(b);
		Component rightComp = optionsPanel.getComponent(rowNum * 2 + 1);
		rightComp.setVisible(b);
		if (b) {
			// if a row is going to take space from the dialog, check the table
			Swing.runLater(this::fixTooSmallTablePanel);
		}
	}
For test/screen shot use

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