Advertisement
Guest User

Untitled

a guest
Sep 26th, 2017
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. @PostConstruct
  2. public void postConstruct(Composite parent) {
  3. parent.setLayout(new FillLayout(SWT.HORIZONTAL));
  4.  
  5. CTabFolder tabFolder = new CTabFolder(parent, SWT.BORDER);
  6. tabFolder.setSimple(false);
  7. tabFolder.setSelectionBackground(Display.getCurrent().getSystemColor(SWT.COLOR_TITLE_INACTIVE_BACKGROUND_GRADIENT));
  8.  
  9. CTabItem tbtmTest = new CTabItem(tabFolder, SWT.NONE);
  10. tbtmTest.setText("test1");
  11.  
  12. Composite composite = new Composite(tabFolder, SWT.NONE);
  13. tbtmTest.setControl(composite);
  14. composite.setLayout(new GridLayout(2, false));
  15. new Label(composite, SWT.NONE);
  16. new Label(composite, SWT.NONE);
  17. new Label(composite, SWT.NONE);
  18.  
  19. Label lblHelloWolf = new Label(composite, SWT.NONE);
  20. lblHelloWolf.setText("Hello World!");
  21.  
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement