私のGWTページにはTextAreaがあり、このページがロードされたときにフォーカスを設定し、すべてのテキストを選択できるようにしたいと思います。以下のコードを試してみましたが、まったく機能しません。手伝って頂けますか?ありがとう
final TextArea myText = new TextArea();
myText.setCharacterWidth(50);
myText.setVisibleLines(20);
myText.setText("Just try something");
RootPanel.get("textContainer").add(myText);
myText.setVisible(true);
myText.setFocus(true);
myText.selectAll();