Well, I think you can. Of cource you can just start up "cmd" and then you can set a printwriter output stream to that window and type out what you want. I have seen that done before, but I never done it myself. You could always cheat and use the Robot class though

.