Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私のアプリケーションには、SWTテキストフィールドがあります。スクロール値を設定する必要があります(私の場合、フィールドのテキストを最後までロールします)。どうすればそれができますか?
これにより、カーソル位置を移動せずに目的の結果が得られるはずです。
text.setTopIndex(text.getLineCount() - 1);
カラットをその位置に設定する必要があります。これにより、テキストがその位置にスクロールします。例えば:
text.setSelection(text.getText().length());