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发行说明。
You can change your Java Web Start application's Launch button image, if you don't like the default 如果您不喜欢默认 button or if you have another image that you have standardized on.
按钮,或者如果您有另一个已标准化的图像,则可以更改Java Web Start应用程序的启动按钮图像。
Use the 使用deployJava.launchButtonPNG
variable to point to the location of your Launch button's image.deployJava.launchButtonPNG
变量指向启动按钮图像的位置。
Variable:变量: deployJava.launchButtonPNG
Usage:用法: Providing an alternate image URL提供备用图像URL
In this example, the Notepad application's Launch button is now an image of Duke waving.在本例中,记事本应用程序的启动按钮现在是杜克挥舞的图像。
<script src="https://www.java.com/js/deployJava.js"></script> <script> deployJava.launchButtonPNG='https://docs.oracle.com/javase/tutorial/images/DukeWave.gif'; var url = "https://docs.oracle.com/javase/tutorialJWS/samples/deployment/NotepadJWSProject/Notepad.jnlp"; deployJava.createWebStartLaunchButton(url, '1.6.0'); </script>
The Notepad application's new Launch button (Duke waving) follows. 记事本应用程序的新启动按钮(杜克挥舞)如下。Click on Duke's image to launch the Notepad application.单击Duke的图像启动记事本应用程序。