- splitPane.setDividerSize(DIVIDER_SIZE);
- if (topFrameHeight == 0)
- {
- setRelativeDividerLocation(0.5d); // as a proportion
- }
- else
- {
- int dividerPosition = topFrameHeight + DIVIDER_SIZE / 2;
- splitPane.setDividerLocation(dividerPosition); // absolute position
- }
- splitPane.setResizeWeight(0.5d);