Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- protected void createFormContent(IManagedForm managedForm){
- super.createFormContent(managedForm);
- Composite parent = managedForm.getForm().getBody();
- parent.setBackground(parent.getDisplay().getSystemColor(SWT.COLOR_RED));
- parent.setSize(500, 500);
- GridLayout layout = new GridLayout();
- layout.numColumns = 2;
- layout.makeColumnsEqualWidth = true;
- parent.setLayout(layout);
- Composite comp_left = new Composite(parent, SWT.NONE);
- comp_left.setSize(400, 400);
- comp_left.setBackground(parent.getDisplay().getSystemColor(SWT.COLOR_BLUE));
- GridLayout layout_left = new GridLayout();
- comp_left.setLayout(layout_left);
- Label label_left = new Label(comp_left, SWT.NONE);
- label_left.setText("linkes label");
- Text text = new Text(comp_left, SWT.BORDER);
- Composite comp_right = new Composite(parent, SWT.NONE);
- RightSite rightSite = new RightSite(comp_right);
- RightElementsObject right_el_obj = new RightElementsObject();
- rightSite.createRightSite(parent, right_el_obj, "Projekt");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement