Bonjour le liste,

J'exécute le code suivant

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
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
import org.eclipse.jface.wizard.Wizard;
import org.eclipse.jface.wizard.WizardDialog;
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.layout.FillLayout;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Shell;
 
 
public class HolidayWizard extends Wizard {
 
	@Override
	public boolean performFinish() {
		// TODO Auto-generated method stub
		return true;
	}
 
	/**
         * @param args
         */
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Display display = new Display();
		final Shell shell = new Shell(display);
		shell.setText("Wizard Example");
		shell.setLayout(new FillLayout());
		Button myButton = new Button(shell, SWT.FLAT);
		myButton.setText("Wizard");
		myButton.addSelectionListener(new SelectionAdapter(){
			public void widgetSelected(SelectionEvent e){
				HolidayWizard wizard = new HolidayWizard();
				wizard.setWindowTitle("Holiday Wizard");
				WizardDialog refWizardDialog = new WizardDialog(shell,wizard);
				refWizardDialog.open();
			}
		});
 
		shell.pack();
		shell.open();
		while(!shell.isDisposed()){
			if (!display.readAndDispatch())
				display.sleep();
		}
		display.dispose();
 
	}
 
}
Et je suis confrontée à diverses situations:

1- L'apparence du shell "Wizard Example" n'est pas bonne. Est ce que c'est un problème de thread d'interface graphique? comment rémédier à la situation?
2- Le titre du wizard "Holiday wizard" n'apparaît pas sur la fenêtre. quelle est l'origine du problème?
3- J'ai lu et mis en pratique la partie XII du tutoriel
Code : Sélectionner tout - Visualiser dans une fenêtre à part
http://www.vogella.de/articles/RichClientPlatform/article.html
et là le wizard a 4 boutons "<Back", "Next", "Finish" et "Cancel". Pourquoi dans le cas ci-dessus, je n'ai que les boutons "Cancel" et "Finish"?
4- Comment puis-je activer, cacher les différents boutons par programmation.

Merci beaucoup d'avance pour votre aide