Before you start
One development environment that allows you to use Java programming exclusively for the development of Web applications is an open-source development framework named ThinWire (see Resources for more information). All of the code for a ThinWire Web application is written in Java code just as though it is a standalone, event-driven program designed to run on the desktop. It is then compiled into a Web application by the ThinWire framework using the standard Sun javac compiler. A special compiler provided by another vendor is not required.
This is one in a series of lessons designed to teach you how to develop rich Web applications using ThinWire and Java code. This first lesson is designed to help you learn how to deal with user interface issues in ThinWire.
The earlier lesson titled "Developing Ajax Web Applications using ThinWire and Java" (see Resources) was designed to help you begin to develop Web applications using the ThinWire framework.
The objective for Part 1 is to learn a programming technique that can be used to dynamically change the layout of a ThinWire GUI based on the current size of the Web browser window. The layout is updated each time the user manually changes the size of the browser window.
You will need:
- Knowledge of event-driven programming using the Java programming language as embodied in Sun's J2SE 5.0 (see DickBaldwin.com in Resources).
- Knowledge of how to deploy a Web application in a Java servlet container (see "Deployment of Web Applications in Jakarta Apache Tomcat 5" in Resources).
First, download and install the ThinWire framework (see Downloads).
Second, you will need access to a servlet container to test your Web applications. The easiest way to do this is to install a servlet container as a localhost server (see Downloads and also see "Getting Started with Jakarta Tomcat, Servlets, and JSP" in Resources).
Third, download Sun's Java Development Kit (see Downloads).