Salut,
Coment intégrer un Ui-Forms dans un Shell (SWT et JFace)?
Merci :zoubi::ccool:
Version imprimable
Salut,
Coment intégrer un Ui-Forms dans un Shell (SWT et JFace)?
Merci :zoubi::ccool:
Bonjour,
tu as ce tuto qui est bien fait.
David.
Salut,
Petit exemple vite fait basé sur le tutoriel proposé précédemment:
Voilà, à+Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 /** * @param args the entries of the main command. */ public static void main(final String[] args) { Display display = new Display(); Shell shell = new Shell(display); shell.setLayout(new GridLayout()); FormToolkit toolkit = new FormToolkit(display); ScrolledForm form = toolkit.createScrolledForm(shell); form.setText("Hello, Eclipse Forms"); shell.pack(); shell.open(); while (!shell.isDisposed()) { if (!display.readAndDispatch()) { display.sleep(); } } display.dispose(); }
Gueritarish