Comment afficher une image avec swt en java?

J'essaie comme suit,ce qui n'est pas rien:

public static void main(String[] args) {
    Display display = new Display();
    Shell shell = new Shell(display);

    Image image = new Image(display,
       "D:/topic.png");
    GC gc = new GC(image);
    gc.setForeground(display.getSystemColor(SWT.COLOR_WHITE));
    gc.drawText("I've been drawn on",0,0,true);
    gc.dispose(); 

    shell.pack();
    shell.open();

    while (!shell.isDisposed()) {
        if (!display.readAndDispatch()) {
            display.sleep();
        }
    }
    display.dispose();
    //TODO Auto-generated method stub
}
Il ne semble pas que vous êtes réellement afficher quoi que ce soit...
J'en veux pour preuve l'image...

OriginalL'auteur lex | 2010-12-15