}
return false;
}
private void adjustHorizontalTrailingBy(Component widget, int delta_width) {
GroupLayout layout = (GroupLayout) container.getLayout();
CompositeAdapter containerAdapter = (CompositeAdapter) WidgetAdapter.getWidgetAdapter(container);
int count = containerAdapter.getChildCount();
for (int i = 0; i < count; i++) {
Component target = containerAdapter.getChild(i);
if (target != widget) {
if (isLeftRelatedTo((JComponent) target, (JComponent) widget)) {
Constraints constraints = layout.getConstraints(target);
Alignment horizontal = constraints.getHorizontal();
if (horizontal instanceof Trailing) {
Trailing leading = (Trailing) horizontal;
leading.setTrailing(leading.getTrailing() + delta_width);
adjustHorizontalTrailingBy(target, delta_width);