133 |
throw new IllegalArgumentException("Illegal placement in JSplitPane"); |
throw new IllegalArgumentException("Illegal placement in JSplitPane"); |
134 |
components[i] = component; |
components[i] = component; |
135 |
resetSizeAt(i); |
resetSizeAt(i); |
136 |
layoutContainer(splitPane); |
splitPane.revalidate(); |
137 |
splitPane.repaint(); |
splitPane.repaint(); |
138 |
} |
} |
139 |
|
|
1265 |
tmpSizes[1] = layoutManager.getAvailableSize(splitPane.getSize(), |
tmpSizes[1] = layoutManager.getAvailableSize(splitPane.getSize(), |
1266 |
splitPane.getInsets()) |
splitPane.getInsets()) |
1267 |
- tmpSizes[0] - tmpSizes[1]; |
- tmpSizes[0] - tmpSizes[1]; |
|
Point p = divider.getLocation(); |
|
1268 |
|
|
|
// if (getOrientation() == JSplitPane.HORIZONTAL_SPLIT) |
|
|
// setLastDragLocation(p.x); |
|
|
// else |
|
|
// setLastDragLocation(p.y); |
|
1269 |
layoutManager.setSizes(tmpSizes); |
layoutManager.setSizes(tmpSizes); |
1270 |
layoutManager.layoutContainer(splitPane); |
splitPane.revalidate(); |
|
|
|
1271 |
splitPane.repaint(); |
splitPane.repaint(); |
1272 |
} |
} |
1273 |
|
|
1408 |
getSplitPane().setLayout(layoutManager); |
getSplitPane().setLayout(layoutManager); |
1409 |
|
|
1410 |
// invalidating by itself does not invalidate the layout. |
// invalidating by itself does not invalidate the layout. |
1411 |
getSplitPane().invalidate(); |
getSplitPane().revalidate(); |
1412 |
} |
} |
1413 |
|
|
1414 |
/** |
/** |
1431 |
nonContinuousLayoutDivider.setVisible(true); |
nonContinuousLayoutDivider.setVisible(true); |
1432 |
nonContinuousLayoutDivider.setBounds(divider.getBounds()); |
nonContinuousLayoutDivider.setBounds(divider.getBounds()); |
1433 |
} |
} |
1434 |
splitPane.invalidate(); |
splitPane.revalidate(); |
1435 |
splitPane.repaint(); |
splitPane.repaint(); |
1436 |
} |
} |
1437 |
|
|