private void scrollViewHorizontally(int scrollAmount) {

		JViewport vp = getViewport();
		if (vp == null) {
			// this will happen for Field Panels not placed inside of scroll panes
			return;
		}

		Point pos = vp.getViewPosition();

		// don't allow new x position to go negative or else you can scroll left past the beginning
		int x = Math.max(0, pos.x + scrollAmount);
		vp.setViewPosition(new Point(x, pos.y));
	}
Notifies all listeners that the selection changed.
Ghidra/Framework/Docking/src/main/java/docking/widgets/fieldpanel/FieldPanel.java