Hello,
Je me retrouve encore avec un problème d'alignement avec mon interface graphique.
Avec le code suivant (simplifié) j'obtiens l écran en pièce jointe
Quelqu un aurait il une idée pour aligner sur la meme ligne la table events + le button create + le button delete
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 CLabel eventsLabel = factory.createCLabel(body, "Events:"); gridData = new GridData(GridData.FILL_BOTH); gridData.horizontalSpan = 4; gridData.grabExcessHorizontalSpace = true; eventsLabel.setLayoutData(gridData); eventsTbl = factory.createTable(body, SWT.SINGLE | SWT.CHECK); gridData = new GridData(GridData.FILL_BOTH); gridData.horizontalSpan = 40; gridData.verticalSpan = 5; eventsTbl.setLayoutData(gridData); createBtn = factory.createButton(body, "Create", SWT.PUSH); createBtn.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_END | GridData.VERTICAL_ALIGN_BEGINNING)); deleteBtn = factory.createButton(body, "Delete", SWT.PUSH); deleteBtn.setEnabled(false); deleteBtn.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_END | GridData.VERTICAL_ALIGN_BEGINNING));
merci
Partager