public void setNeverScroll(boolean b) {
		neverScroll = true;
		scrollPane.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER);
		scrollPane.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);
		useViewSizeAsPreferredSize = b;
	}
Sets this scroll pane to never show scroll bars. This is useful when you want a container
whose view is always as big as the component in this scroll pane.
@param b true to never scroll
Ghidra/Framework/Docking/src/main/java/docking/widgets/indexedscrollpane/IndexedScrollPane.java