sideComponents.add(component);
int newIndex = sideComponents.size();
add(component, new GridBagConstraints(newIndex, 0, 1, 1, 0.0, 0.0, GridBagConstraints.LINE_START, GridBagConstraints.BOTH, new Insets(0, 2, 0, 0), 0, 0));
+ validate();
}
/**
public void removeSideComponent(int sideComponentIndex) {
Component sideComponent = sideComponents.remove(sideComponentIndex);
remove(sideComponent);
+ validate();
}
/**
public void removeSideComponent(Component sideComponent) {
sideComponents.remove(sideComponent);
remove(sideComponent);
+ validate();
}
}