private IFigure getContents() { IFigure panel = new Panel(); BorderLayout lm = new BorderLayout(); panel.setLayoutManager(lm); arrowButton = new ArrowButton(direction); arrowButton.setCursor(Display.getCurrent().getSystemCursor(SWT.CURSOR_HAND)); arrowButton.setBackgroundColor(ColorConstants.white); Label lbl = new Label(lblText); lbl.setBackgroundColor(ColorConstants.black); lbl.setForegroundColor(ColorConstants.black); setTriangleColor(READY_COLOUR); Label imgLblFigure = new Label( TomoClientActivator.getDefault().getImageRegistry().get(ImageConstants.ICON_CTRL_BTN)); panel.setBackgroundColor(ColorConstants.white); panel.add(imgLblFigure); panel.setConstraint(imgLblFigure, BorderLayout.TOP); arrowButton.add(lbl); panel.add(arrowButton); panel.setConstraint(arrowButton, BorderLayout.CENTER); lbl.addMouseListener(mousePressListener); return panel; }