Documentation

(jvx:client:gui)

Using the Correct Launcher

Translations of this page:

A JVx application is always developed technology-independent. This makes it possible to provide the application on various different platforms.

The framework currently supports the following UI technologies:

  • Swing
  • Vaadin
  • Headless

To launch an application using a certain platform, all we have to do is use the appropriate launcher. The launcher definition depends on the used technology. If you use Swing, all you have to do is to set a command-line argument. For Vaadin and Headless, you have to use the deployment descriptor (web.xml).

The class com.sibvisions.rad.ui.swing.impl.SwingApplication is used as main class for Swing.

Example Using an Eclipse Runtime Configuration

The configuration dialog:

Example Using Vaadin

The deployment descriptor (web.xml):

<servlet>
  <servlet-name>VaadinServlet</servlet-name>
  <servlet-class>com.sibvisions.rad.ui.vaadin.server.VaadinServlet</servlet-class>
 
  <init-param>
    <param-name>UI</param-name>
    <param-value>com.sibvisions.rad.ui.vaadin.impl.VaadinUI</param-value>
  </init-param>
 
  <init-param>
    <param-name>widgetset</param-name>
    <param-value>com.sibvisions.rad.ui.vaadin.ext.ui.Widgetset</param-value>
  </init-param>
 
  <init-param>
    <param-name>main</param-name>
    <param-value>com.sibvisions.apps.simpleapp.SimpleApplication</param-value>
  </init-param>
</servlet>
 
<servlet-mapping>
  <servlet-name>VaadinServlet</servlet-name>
  <url-pattern>/*</url-pattern>
</servlet-mapping>
This website uses cookies for visitor traffic analysis. By using the website, you agree with storing the cookies on your computer.More information