@Override
	public JComponent getEditorComponent(Options options, EditorStateFactory factory) {
		scrollPane = new JScrollPane();
		optionsPanel = new OptionsEditorPanel(title, options, optionNames, factory);
		optionsPanel.setOptionsPropertyChangeListener(listener);

		scrollPane.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED);
		scrollPane.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED);

		// the outer panel is 'Scrollable' and uses a layout that centers the options panel
		JPanel outerPanel = new ScollableOptionsPanel();
		outerPanel.add(optionsPanel);
		scrollPane.setViewportView(outerPanel);

		return scrollPane;
	}
Creates a panel for editing options. This version of the constructor will get the
options names from the options object when
{@link #getEditorComponent(Options, EditorStateFactory)} is called.
@param title the title for the panel
Ghidra/Framework/Docking/src/main/java/docking/options/editor/ScrollableOptionsEditor.java