The Java Tutorials have been written for JDK 8.Java教程是为JDK 8编写的。Examples and practices described in this page don't take advantage of improvements introduced in later releases and might use technology no longer available.本页中描述的示例和实践没有利用后续版本中引入的改进,并且可能使用不再可用的技术。See Java Language Changes for a summary of updated language features in Java SE 9 and subsequent releases.有关Java SE 9及其后续版本中更新的语言特性的摘要,请参阅Java语言更改。
See JDK Release Notes for information about new features, enhancements, and removed or deprecated options for all JDK releases.有关所有JDK版本的新功能、增强功能以及已删除或不推荐的选项的信息,请参阅JDK发行说明。
Do you want to use high-performance graphics in the Java development environment? 您想在Java开发环境中使用高性能图形吗?Have you always wanted to program a game, but your images wouldn't move fast enough? 你是否一直想编写一个游戏,但你的图像移动速度不够快?Has your slide show program not worked properly because you had no control over the user's display resolution? 您的幻灯片放映程序是否因为无法控制用户的显示分辨率而无法正常工作?If you've been asking any of these questions, then the full-screen exclusive mode API, introduced in release 1.4, may be what you're looking for.如果您一直在问这些问题,那么在1.4版中引入的全屏独占模式API可能就是您想要的。
paint
method is passive, whereas rendering in your own thread is active. paint
方法进行绘制是被动的,而在自己的线程中进行渲染是主动的。java.awt.image.BufferStrategy
, a class that allows you to draw to surfaces and components without having to know the number of buffers used or the technique used to display them. java.awt.image.BufferStrategy
,该类允许您绘制曲面和组件,而无需知道所使用的缓冲区数量或用于显示它们的技术。java.awt.BufferCapabilities
, a class that can help you determine the capabilities of your graphics device.java.awt.BufferCapabilities
,该类可以帮助您确定图形设备的功能。