主界面用FormLayout,工具栏无图片时显示正常,有图片时,工具栏消失了 ToolBar toolBar = new ToolBar(shell, SWT.NONE);
FormData fd_toolBar = new FormData();
fd_toolBar.top = new FormAttachment(0);
fd_toolBar.left = new FormAttachment(0);
fd_toolBar.bottom = new FormAttachment(0, 25);
fd_toolBar.right = new FormAttachment(100);
toolBar.setLayoutData(fd_toolBar); ToolItem toolItem = new ToolItem(toolBar, SWT.PUSH);
//toolItem.setImage(new Image(display, "images/01.gif"));
toolItem.setText("用户管理");