Use setControlText(string) method.
obj.setControlText("Button");
Back to button examples, all examples