Implementing the Swing console