final StringWriter theOutputStream = new StringWriter();
_facade.executeWhenInactive(new CommandInterface() {
public final boolean execute() {
_facade.update(theOutputStream);
_textArea.append(theOutputStream.toString());
return true;
}
public final String getName() {
return "Done";
}
});
Free the resources when done.
_facade.disposeWhenInactive();
Example
Accelerators :
home, end, page up, page down, left arrow,right arrow, up arrow, down arrow.
Autoscrolling :
drag the mouse inside the
text area, approach a border or a corner, and wait.
Actions :
scroll the lower text area to see the ascii ouput.