Hello,
iam using the following piece of code to print out the progress from a background thread - importing files to database.
final ARCsql test=new ARCsql(dm,selectedItemIds,hdd);
final Refresher refresher = new Refresher();
refresher.setRefreshInterval(1000);
refresher.addListener(new RefreshListener() {
@Override
public void refresh(Refresher source) {
info.setReadOnly(false);
info.setValue(test.getOutput().toString());
info.setCursorPosition(test.getOutput().length());
info.setReadOnly(true);
}
});
addExtension(refresher);
test.start();
getOutput is a Stringbuilder where i append new tasks(Lines) from the backroundthread. It works instead of one problem.
I want to focus the textarea to the bottom - so you can directly see whats happening now. The Cursor is at the End of the Textarea but the Focus is always on top. Any Ideas?
THX!