An Example Application
As a recapping example of what said, let's take a look at Listing 11.10, in which an application uses many of the things discussed in this chapter. As we can see, we are constantly moving toward a full-fledged application, such as the one presented in Chapter 13.
Listing 11.10. A Recapping Example of JNLP Runtime Services at Work
package com.marinilli.b2.c11; import com.marinilli.b2.c11.util.*; import javax.swing.*; import java.awt.event.*; import javax.jnlp.*; import java.net.URL; import java.io.*; import java.util.Iterator; import java.awt.*; /** * Chapter 11 A test application * @author Mauro Marinilli * @version 1.0 */ public class AnApplication extends JFrame { JPanel centerPanel = new JPanel(); JButton pasteButton ... |
Get Java™ Deployment with JNLP™ and Webstart™ now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.