I am using Apache POI XSSF and HSSF API.
If I do this, it only freezes the pane (no split):
sheet1.createSplitPane(8000, 5000, 0, 0, Sheet.PANE_LOWER_RIGHT);
sheet1.createFreezePane(0, 1);
and if I do this, it only splits the pane (no freeze):
sheet1.createFreezePane(0, 1);
sheet1.createSplitPane(8000, 5000, 0, 0, Sheet.PANE_LOWER_RIGHT);
How should I make both work together in the same sheet?