Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
所以我有一个运行类似于 MS-DOS 的程序。像 MS-DOS 一样,我不希望在我的窗口中有鼠标或插入符号。
到目前为止,我已经设法通过使光标和插入符号都不可见来隐藏它们,但是您仍然可以移动和选择屏幕上的其他内容。
所以我有两个问题:
提前致谢 :)
实现行为的疯狂想法,但是
或者,您可以使用具有黑色背景和等宽字体的 JTextArea。