I have a button and i’m trying to set text and image on it by :
button.setText("+");
button.setImage( PlatformUI.getWorkbench().getSharedImages().getImage( ISharedImages.IMG_OBJ_FILE ) );
But, this pice of code makes the image to appear before text.
I want it the other way i.e. text before the image.
Any Suggestions ?
I suggest you to add a
PaintListenerto your button and do the hard work on itspaintControlmethod.