* project
*/
int topFrameHeight = topFrame.getHeight();
- /**
- * TODO SplitFrame.setDividerLocation
- *
- * @j2sNative
- */
+ splitPane.setDividerSize(DIVIDER_SIZE);
+ if (topFrameHeight == 0)
{
- 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);
+ setRelativeDividerLocation(0.5d); // as a proportion
}
+ else
+ {
+ int dividerPosition = topFrameHeight + DIVIDER_SIZE / 2;
+ splitPane.setDividerLocation(dividerPosition); // absolute position
+ }
+ splitPane.setResizeWeight(0.5d);
add(splitPane);
}
public void setRelativeDividerLocation(double r)
{
this.dividerRatio = r;
- /**
- *
- * BH need for this? - NOT setting the location?
- *
- * @j2sNative
- */
- {
- splitPane.setDividerLocation(r);
- }
+ splitPane.setDividerLocation(r);
}
/**
*/
protected void setDividerLocation(int p)
{
- /**
- * BH: Why are we not setting the location?
- *
- * @j2sNative
- */
- {
- splitPane.setDividerLocation(p);
- }
+ splitPane.setDividerLocation(p);
}
/**