dwt.widget.Text has method void setText (char[] string); Sets the contents of the receiver to the given string. In my application I use many of these text boxes each with a name so I need a function void setText(char[] name, char[] text){ name.setText(text);} How can I bring this into my program ?