1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
|
panHaut=new Composite(sShell,SWT.BORDER);
phData=new GridData(GridData.FILL_HORIZONTAL);
barOutils=new ToolBar(panHaut,SWT.HORIZONTAL);
phData.horizontalSpan=8;
phData.verticalSpan=1;
//Home
home=new ToolItem(barOutils,SWT.PUSH);
home.setImage(new Image(display,Util.HOME+"\\icones\\home.gif"));
//Actualiser
actualiser=new ToolItem(barOutils,SWT.PUSH);
actualiser.setImage(new Image(display,Util.HOME+"\\icones\\update.gif"));
new ToolItem(barOutils,SWT.SEPARATOR);
barOutils.setBounds(0, 0,500, 25);
panHaut.setLayoutData(phData); |
Partager