LWUITを使用するFormと、読み取り専用TextAreaとButton:の2つのコンポーネントがあります。
TextArea text = new TextArea("blah blah blah blah blah blah blah blah blah ...");
text.setEditable(false);
form.addComponent(text);
Button button = new Button("Press Me !");
button.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent evt) {
// DESIRED CODE IS HERE ...
}
});
form.addComponent(button);
には長いが含まれTextAreaているため、ユーザーが' sを下に移動して、の終わりに達すると、フォーカスを取得して'sをの終わりに残します。をクリックすると、スクロールバーがのではなく、の元の状態に戻るようにします。どうすればこれを行うことができますか?ScrollbarStringDOWNTextAreaScrollbarStringButtonTextAreaScrollbarTextAreaButtonTopTextAreaBottomTextArea