As noted in the comments to @camickr's answer, disabling the entire split panel can disable the interactive behavior of the contained components (for example, when you hover over them, they will not display their interactive cursors).
instead, if BasicSplitPaneUI is used, you can disable the delimiter from the user interface
public void setResizable(boolean resizable) { BasicSplitPaneUIui = (BasicSplitPaneUI) this.getUI(); ui.getDivider().setEnabled(resizable); }
Troglogeek
source share