Java console program

前端 未结 6 1932
花落未央
花落未央 2021-02-01 15:30

I was wondering how to make a Java console program. I use Eclipse as IDE. Looking for something similar to C#\'s version of a console program.

Tried Google but only foun

6条回答
  •  暗喜
    暗喜 (楼主)
    2021-02-01 16:28

    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.

提交回复
热议问题