private Composite createFrame() { Composite frameComp = new Composite(getParent(), SWT.NONE); frameComp.setData(WidgetUtil.CUSTOM_VARIANT, "compGray"); // $NON-NLS-1$ frameComp.setLayout(new FormLayout()); frameComp.setBackgroundMode(SWT.INHERIT_FORCE); Label left = new Label(frameComp, SWT.NONE); left.setData(WidgetUtil.CUSTOM_VARIANT, "stackBorder"); // $NON-NLS-1$ left.setBackgroundImage(borderLeft); FormData fdLeft = new FormData(); left.setLayoutData(fdLeft); fdLeft.top = new FormAttachment(0, borderTop.getBounds().height); fdLeft.bottom = new FormAttachment(100, -borderBottom.getBounds().height + 1); fdLeft.left = new FormAttachment(0); fdLeft.width = borderLeft.getBounds().width; labelMap.put(LEFT_BORDER, left); Label right = new Label(frameComp, SWT.NONE); right.setData(WidgetUtil.CUSTOM_VARIANT, "stackBorder"); // $NON-NLS-1$ right.setBackgroundImage(borderRight); FormData fdRight = new FormData(); right.setLayoutData(fdRight); fdRight.top = new FormAttachment(0, borderTop.getBounds().height); fdRight.bottom = new FormAttachment(100, -borderBottom.getBounds().height + 1); fdRight.right = new FormAttachment(100); fdRight.width = borderRight.getBounds().width; labelMap.put(RIGHT_BORDER, right); Label top = new Label(frameComp, SWT.NONE); top.setData(WidgetUtil.CUSTOM_VARIANT, "stackBorder"); // $NON-NLS-1$ top.setBackgroundImage(borderTop); FormData fdTop = new FormData(); top.setLayoutData(fdTop); fdTop.top = new FormAttachment(0); fdTop.left = new FormAttachment(left); fdTop.right = new FormAttachment(right); fdTop.height = borderTop.getBounds().height; labelMap.put(TOP_BORDER, top); Label bottom = new Label(frameComp, SWT.NONE); bottom.setData(WidgetUtil.CUSTOM_VARIANT, "stackBorder"); // $NON-NLS-1$ bottom.setBackgroundImage(borderBottom); FormData fdBottom = new FormData(); bottom.setLayoutData(fdBottom); fdBottom.bottom = new FormAttachment(100); fdBottom.left = new FormAttachment(left); fdBottom.right = new FormAttachment(right); fdBottom.height = borderBottom.getBounds().height; labelMap.put(BOTTOM_BORDER, bottom); Composite result = new Composite(frameComp, SWT.NONE); result.setData(WidgetUtil.CUSTOM_VARIANT, "compGray"); // $NON-NLS-1$ FormData fdResult = new FormData(); result.setLayoutData(fdResult); fdResult.top = new FormAttachment(top); fdResult.left = new FormAttachment(left); fdResult.right = new FormAttachment(right); fdResult.bottom = new FormAttachment(bottom); return result; }