Reading the object of this post should tell you what I wish for ! I’m still rather unfamiliar with SWT. It took me a bit of reading before I got the company logo in my JFace Window acting as a splash. This is how my code looks like after research on the web:
final Canvas canvas = new Canvas(composite,0);
canvas.addPaintListener(new PaintListener(){
public void paintControl(PaintEvent e){
GC gc = e.gc;
gc.drawImage(logo,0,0,logo.getBounds().width,logo.getBounds().height,0,0,150,200);
}
});
Using SWT Designer, I perused through the Canvas’ properties looking for a way to stick an image into it but found nothing. Is there a simple way to drag and drop an image onto a composite (or canvas) with SWT Designer or must I alway open the source each time ?
Thank you
Sebastien