Dialog createControls et composite
Re,
J ai un soucie cette fois lorsque j initialise mon dialog. Je passe par la methode createControls et je tente de créer des widgets
si je tente dans cette méthode de créer un composite pour y placer mes elements ca foire
voici la méthode que j ai testé
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
|
/**
* Create the fields of the search dialog box
*
* @param parent
* The parent component
*/
public void createContents(Composite parent) {
final boolean equalWidth = false;
Composite composite = new Composite(parent, SWT.NONE);
GridLayout layout = new GridLayout(1, equalWidth);
composite.setLayout(layout);
//TODO ajq why group doesn't work
Group group = new Group(composite, SWT.SHADOW_ETCHED_IN);
group.setText("Filters");
Label languageLabel = new Label(group, SWT.NONE);
languageLabel.setText("Language");
} |
cela m affiche rien ....
quelqu un aurait une piste ?