* project
*/
int topFrameHeight = topFrame.getHeight();
- splitPane.setDividerSize(DIVIDER_SIZE);
- if (topFrameHeight == 0)
- {
- setRelativeDividerLocation(0.5d); // as a proportion
- }
- else
+ /**
+ * TODO SplitFrame.setDividerLocation
+ *
+ * @j2sNative
+ */
{
- int dividerPosition = topFrameHeight + DIVIDER_SIZE / 2;
- splitPane.setDividerLocation(dividerPosition); // absolute position
+ 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);
}
- splitPane.setResizeWeight(0.5d);
add(splitPane);
}
}
else
{
- ((BasicInternalFrameUI) topFrame.getUI()).setNorthPane(null);
- ((BasicInternalFrameUI) bottomFrame.getUI()).setNorthPane(null);
+ /**
+ * @j2sNative
+ */
+ {
+ ((BasicInternalFrameUI) topFrame.getUI()).setNorthPane(null);
+ ((BasicInternalFrameUI) bottomFrame.getUI()).setNorthPane(null);
+ }
}
}
public void setRelativeDividerLocation(double r)
{
this.dividerRatio = r;
- splitPane.setDividerLocation(r);
+ /**
+ * @j2sNative
+ */
+ {
+ splitPane.setDividerLocation(r);
+ }
}
/**
*/
protected void setDividerLocation(int p)
{
- splitPane.setDividerLocation(p);
+ /**
+ * @j2sNative
+ */
+ {
+ splitPane.setDividerLocation(p);
+ }
}
/**