What you could do is create a JFrame with a text box at the bottom. This will be where you type. You could then add a jlabel any time you press enter. Also, it will move all other existing jlabel output up by the height of the new jlabel. This gives kind of a terminal type window.