private JSplitPane splitPanels(JPanel panel1, JPanel panel2) {

		// Set up a split pane to divide the two tables and set the current splitter 
		// position to whatever is in splitterVal; this ensures that if the user sets
		// a splitter position, the next time the table is loaded it will use that
		// position.
		JSplitPane splitter = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, panel1, panel2);
		splitter.setDividerLocation(splitterVal);

		splitter.addPropertyChangeListener(JSplitPane.DIVIDER_LOCATION_PROPERTY,
			pce -> splitterVal = (int) pce.getNewValue());
		return splitter;
	}
Creates a splitter between the two given panels.

@param panel1 left panel
@param panel2 right panel
@return
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/instructionsearch/ui/InstructionSearchMainPanel.java