9.10. Graphical Applications

The previous examples used applets: Java programs that run within a Web browser. Local Java programs can use windows as well. Stand-alone graphical Java programs start with a Java JFrame, which is a heavyweight Swing component. Applications differ significantly from applets, in the sense that applets should be based on AWT components because most browsers do not fully support the new Swing components unless the Java Plug-In (covered in Section 9.9) is installed or Swing classes are supplied over the network.

On the other hand, Java applications run as a stand-alone instance of the Java Virtual Machine on the client workstation. Thus, you can assume that the client has a version of the JVM that does support Swing components, ...

Get Core Web Programming, Second Edition 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.