BAEL-388 (#1360)
* initial push * module Java Web Start (jws) add * pom improvements and fixes
This commit is contained in:
committed by
Zeger Hendrikse
parent
202a19acbf
commit
d35f7d01f7
@@ -0,0 +1,15 @@
|
||||
package com.example;
|
||||
|
||||
import javax.swing.*;
|
||||
|
||||
public class Hello {
|
||||
public static void main(String[] args) {
|
||||
JFrame f = new JFrame("main");
|
||||
f.setSize(200, 100);
|
||||
f.setLocationRelativeTo(null);
|
||||
f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
|
||||
JLabel label = new JLabel("Hello, world!");
|
||||
f.add(label);
|
||||
f.setVisible(true);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
<!DOCTYPE web-app
|
||||
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
|
||||
"http://java.sun.com/dtd/web-app_2_3.dtd">
|
||||
<web-app>
|
||||
<display-name>Java Web Start</display-name>
|
||||
<description>JNLP Example for Java Web Start Article</description>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>JnlpDownloadServlet</servlet-name>
|
||||
<servlet-class>jnlp.sample.servlet.JnlpDownloadServlet</servlet-class>
|
||||
</servlet>
|
||||
<servlet-mapping>
|
||||
<servlet-name>JnlpDownloadServlet</servlet-name>
|
||||
<url-pattern>*.jar</url-pattern>
|
||||
</servlet-mapping>
|
||||
<servlet-mapping>
|
||||
<servlet-name>JnlpDownloadServlet</servlet-name>
|
||||
<url-pattern>*.jnlp</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<welcome-file-list>
|
||||
<welcome-file>index.html</welcome-file>
|
||||
</welcome-file-list>
|
||||
</web-app>
|
||||
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<jnlp spec="1.0+" codebase="$$codebase">
|
||||
<information>
|
||||
<title>Hello</title>
|
||||
<vendor>Example</vendor>
|
||||
</information>
|
||||
<resources>
|
||||
<j2se version="1.2+"/>
|
||||
<jar href="jws.jar" main="true" />
|
||||
</resources>
|
||||
<application-desc/>
|
||||
</jnlp>
|
||||
@@ -0,0 +1,10 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>Hello World JNLP</title>
|
||||
</head>
|
||||
<body>
|
||||
<p>
|
||||
<a href="hello.jnlp">Launch the example</a>
|
||||
</p>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user