# 更改启动按钮

> 原文： [https://docs.oracle.com/javase/tutorial/deployment/deploymentInDepth/changeLaunchButtonOfJWS.html](https://docs.oracle.com/javase/tutorial/deployment/deploymentInDepth/changeLaunchButtonOfJWS.html)

如果您不喜欢默认的![Launch button](img/4707a69a17729d71c56b2bdbbb4cc61c.jpg)按钮，或者您有另一个已标准化的图像，则可以更改 Java Web Start 应用程序的启动按钮图像。

使用`deployJava.launchButtonPNG`变量指向“启动”按钮图像的位置。

**变量：** `deployJava.launchButtonPNG`

**用法：**提供备用图片网址

在此示例中，记事本应用程序启动按钮现在是 Duke 挥动的图像。

```

<script src="https://www.java.com/js/deployJava.js"></script>
<script>
    deployJava.launchButtonPNG='https://docs.oracle.com/javase/tutorihttps://docs.oracle.com/javase/tutorial/images/DukeWave.gif';
    var url = "https://docs.oracle.com/javase/tutorialJWS/deployment/webstart/examples/Notepad.jnlp";
    deployJava.createWebStartLaunchButton(url, '1.6.0');
</script>

```

记事本应用程序的新启动按钮（Duke 挥动）如下。单击 Duke 的图像以启动记事本应用程序。

<noscript>A browser with JavaScript enabled is required for this page to operate properly.</noscript>

* * *

**Note:**  If you don't see the example running, you might need to enable the JavaScript interpreter in your browser so that the Deployment Toolkit script can function properly.

* * *