}
}
}
private boolean isRightRelatedTo(JComponent target, JComponent widget) {
LayoutStyle style = LayoutStyle.getInstance();
int er = style.getPreferredGap(target, widget, ComponentPlacement.RELATED, SwingConstants.EAST, container);
int nr = style.getPreferredGap(target, widget, ComponentPlacement.RELATED, SwingConstants.NORTH, container);
int sr = style.getPreferredGap(target, widget, ComponentPlacement.RELATED, SwingConstants.SOUTH, container);
Rectangle tgtb = target.getBounds();
Rectangle srcb = widget.getBounds();
int tgtx = tgtb.x;
int srcr = srcb.x + srcb.width;
if (tgtx > srcr) {