Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @PostConstruct
- public void postConstruct(Composite parent) {
- parent.setLayout(new FillLayout(SWT.HORIZONTAL));
- CTabFolder tabFolder = new CTabFolder(parent, SWT.BORDER);
- tabFolder.setSimple(false);
- tabFolder.setSelectionBackground(Display.getCurrent().getSystemColor(SWT.COLOR_TITLE_INACTIVE_BACKGROUND_GRADIENT));
- CTabItem tbtmTest = new CTabItem(tabFolder, SWT.NONE);
- tbtmTest.setText("test1");
- Composite composite = new Composite(tabFolder, SWT.NONE);
- tbtmTest.setControl(composite);
- composite.setLayout(new GridLayout(2, false));
- new Label(composite, SWT.NONE);
- new Label(composite, SWT.NONE);
- new Label(composite, SWT.NONE);
- Label lblHelloWolf = new Label(composite, SWT.NONE);
- lblHelloWolf.setText("Hello World!");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement