Skip to main content

Scenario Webstart Extension

Posted by idk on February 8, 2008 at 8:37 PM PST

src="http://download.java.net/javadesktop/blogs/idk/02.08.2008/image.png"/>

Scenario version 0.5 is out. For the list of features and enhancements
check out Hans's
announcement
here.

One of the things we have done for this and will do for future
releases is to provide a webstart extension for Scenario binaries.
Using the extension allows for simpler deployment for webstart
enabled applications which use Scenario. Instead of hosting Scenario
binaries on your website you can reference them using
extension tag in resources section of you
jnlp file. The extension for release 0.5 is available
here:
http://download.java.net/javadesktop/scenario/releases/0.5/Scenario-0.5.jnlp.

Take this demo for example:


(Note: java 6 is required to run it)

Here is jnlp file for this demo:
http://puzzleware.net/CodeHTMLer/ was used to create pretty html of the xml file -->

xml version="1.0" encoding="UTF-8"?>
  <jnlp codebase="http://download.java.net/javadesktop/blogs/idk/02.08.2008" href="movie.jnlp">
  <information>
    <title>Countdown Film Demo</title>
    <vendor>Sun Microsystems, Inc.</vendor>
    <offline-allowed />
  </information>
  <resources>
     <j2se version="1.6+" href="http://java.sun.com/products/autodl/j2se" />
     <extension name="Scenario-0.5"
       href="http://download.java.net/javadesktop/scenario/releases/0.5/Scenario-0.5.jnlp"/>
     <jar href="movie.jar" />
  </resources>
  <application-desc main-class="demo.movie.Movie"/>
</jnlp>

Resources

The sources for the demo are available

here

or in the scenario-demos repository
here.

Related Topics >>

Comments

Done -- http://forums.java.net/jive/thread.jspa?threadID=38356 thanks.

Hi Jared , May I ask you to repost your question to http://forums.java.net/jive/forum.jspa?forumID=74 Thanks, Igor

Hi Igor, sorry for posting randomly on your blog, but I found your name exploring the com.sun.java.swing.plaf.windows source code.... :) I'm trying to support multi-sequence accelerators in JMenuItems while using the Windows look and feel. For example, File Open... Ctrl+X Ctrl-F Save Ctrl+X Ctrl+S Close Ctrl+X Ctrl+K Previously, we were able to do this by supplying our own subclass of BasicMenuItemUI. Now, however, with all the special rendering for Vista, our subclass does not render the same as Sun's WindowsMenuItemUI. Can you think of a good way to accomplish this? We are really stuck! Thanks! Jared

Scenario is really cool ! - Michael Knyazev