SWT Java Tutorial

The setText method can be used to set a shell's title:

public void setText(String text)