I am new to GXT.
I want to set the default focus on GXT TextArea. I am using TextArea in a Dialog. When ever user clicks on Button, Dialog box will be displayed and by default cursor should be displayed in the TextArea to enter the text.
I tried with TextArea.focus() method. But, its not working.
I am using GXT API 2.1.1.
Instead of directing the widget to be focused every time it is displayed, tell the Dialog to focus on that widget whenever the Dialog is show()n. Dialog's superclass Window has a method setFocusWidget(Widget) which indicates that the given widget should be focused when show() is called on the window.