private void buildOptionsButtonComponents() {
		showAdvancedOptionsButton = new JToggleButton("Advanced...");
		showAdvancedOptionsButton.setName("SHOW_ADVANCED_OPTIONS");
		showAdvancedOptionsButton.getAccessibleContext().setAccessibleName("Show Advanced Options");
		showAdvancedOptionsButton.setToolTipText("Show advanced options.");
		showAdvancedOptionsButton.addActionListener(e -> {
			setRowVisibility(advOptsRow1, showAdvancedOptionsButton.isSelected());
			setRowVisibility(advOptsRow2, showAdvancedOptionsButton.isSelected());
			setRowVisibility(stringModelRow, showAdvancedOptionsButton.isSelected());
			advancedFailedCountLabel.setVisible(!showAdvancedOptionsButton.isSelected());
		});

		// the empty div ensures the initial preferred width of the dialog includes space to show a fail count
		advancedFailedCountLabel = new GDHtmlLabel("<html><div width=50></div>");
		advancedFailedCountLabel.setForeground(GThemeDefaults.Colors.Messages.ERROR);
		advancedFailedCountLabel.setToolTipText(
			"Number of strings excluded due to filtering options in advanced options.");
		advancedFailedCountLabel.setVisible(!showAdvancedOptionsButton.isSelected());
		advancedFailedCountLabel.getAccessibleContext().setAccessibleName("Advanced Failed Count");

		showScriptOptionsButton = new JToggleButton("A-Z,\u6211\u7684,\u062d\u064e\u0648\u0651");
		showScriptOptionsButton.setName("SHOW_SCRIPT_OPTIONS");
		showScriptOptionsButton.getAccessibleContext().setAccessibleName("Show Script Options");
		showScriptOptionsButton.setToolTipText("Filter by character scripts (alphabets).");
		showScriptOptionsButton.addActionListener(e -> {
			setRowVisibility(scriptRow, showScriptOptionsButton.isSelected());
			updateOptionsAndRefresh();
		});

		showTranslateOptionsButton = new JToggleButton("Translate");
		showTranslateOptionsButton.setName("SHOW_TRANSLATE_OPTIONS");
		showTranslateOptionsButton.getAccessibleContext()
				.setAccessibleName("Show Translate Options");
		showTranslateOptionsButton.setToolTipText("Translate strings after creation.");
		showTranslateOptionsButton.addActionListener(e -> {
			setRowVisibility(translateRow, showTranslateOptionsButton.isSelected());
		});
	}
For test/screen shot use

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