}
hidePosition(false);
// Insert space for dragging image at specific index.
GlassPanel glassPanel = (GlassPanel) SwingUtilities.getRootPane(container).getGlassPane();
switch (anchor) {
case TOP:
case BOTTOM:
container.add(new VerticalSeparatorLabel(), i + ",1,c,c");
layout.setColumn(i, glassPanel.getDraggingImage().getWidth(container) + 6);
break;
case LEFT:
case RIGHT:
container.add(new HorizontalSeparatorLabel(), "1," + i + ",c,c");
layout.setRow(i, glassPanel.getDraggingImage().getHeight(container) + 6);
break;
}
index = i / 2;
if (fromUp)