A browser with JavaScript enabled is required for this page to operate properly.
Documentation

The Java™ Tutorials
Trail: Deployment
Lesson: Deployment In-Depth
Section: Deployment Toolkit
Subsection: Deploying a Java Web Start Application
« PreviousTrailNext »

The Java Tutorials have been written for 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 Dev.java for updated tutorials taking advantage of the latest releases.
See Java Language Changes for a summary of updated language features in Java SE 9 and subsequent releases.
See JDK Release Notes for information about new features, enhancements, and removed or deprecated options for all JDK releases.

Changing the Launch Button

You can change your Java Web Start application's Launch button image, if you don't like the default Launch button button or if you have another image that you have standardized on.

Use the deployJava.launchButtonPNG variable to point to the location of your Launch button's image.

Variable: deployJava.launchButtonPNG

Usage: Providing an alternate image 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.

A browser with JavaScript enabled is required for this page to operate properly.

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.
« PreviousTrailNext »

Previous page: Deploying a Java Web Start Application
Next page: Deploying Without Codebase

AltStyle によって変換されたページ (->オリジナル) /