I have a child window, containing a form, Labels, Combos, Buttons aligned in a line, line by line. Form is not finite. There is a button for adding extra line of input fields. It sort of works for the moment... Problem is when the new line is added the child window size remains the same, however I want it to resize automatically.
child window is a standard SWT shell
Shell ConstantEditWindow = new Shell(parent);
I hava a button with sth like this:
addDesc.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent e) {
populateConstantMain(tariffConstantsOfType, descComp, descCompLayout, true);
ConstantEditWindow.layout();
}
});
but id doesnt work :/ the child window wont resize ;(
Read this: http://www.eclipse.org/articles/article.php?file=Article-Understanding-Layouts/index.html
Also convention has it that constant name in java should be ALL_IN_CAPITAL.