Java,为什么我的线条在 BlueJ 中总是变白?

Java, why do my lines always white out in BlueJ?

在输入我的代码时,有些行会自动间隔开,每当我尝试单击或输入某些内容时,更多行会在此过程中消失,因此我不得不删除 class 本身。 我在另一个系统上遇到过同样的问题。

我的代码连Ctrl+A都不会,求救!

截图:

BlueJ 常见问题解答提到 Windows 上可能的显示伪像:

There are visual artifacts on the BlueJ windows (black areas, distorted text, etc) in Windows

Visual artifacts - black areas, distorted or missing text, etc - are usually a result of either a display driver bug or a Java bug. Try updating your display drivers (see here for Windows 7) or disabling graphics acceleration (see here).

https://bluej.org/faq.html#win_visual_artifcats

它就如何修复它们提出了一些建议:

  • 更新显示驱动程序
  • 更新JDK
  • 更改虚拟机参数

阅读链接的常见问题解答以获取说明。

发布日志也讲述了类似的故事,因此请确保您已更新 BlueJ:

4.1.0 23 June 2017

Major fixes:

Fixed: Graphical display bug could cause the Java editor and other windows (e.g. Terminal) to turn white and not redraw correctly.

https://bluej.org/versions.html