Preface
I recommend opening another copy of this document in a separate browser window and using the following links to easily find and view the figures and listings while you are reading about them.
- Figure 1. A common Web page layout
- Figure 2. Second most common Web page layout
- Figure 3. An action listener on the labels
- Figure 4. Resizing the browser
- Figure 5. Top panel eliminated
- Figure 6. Left panel eliminated
- Figure 7. All but the center panel eliminated
- Figure 8. Minimum width of center panel
- Listing 1. Beginning of the class named WebPage001
- Listing 2. Panel accessor methods
- Listing 3. Beginning of the constructor
- Listing 4. Add panels and do first layout
- Listing 5. Register a PropertyChangeListener object
- Listing 6. Beginning of method named layoutComponents
- Listing 7. Adjust panel sizes and locations
- Listing 8. Beginning of member class named ContentPanel
- Listing 9. The method named setTheBounds
- Listing 10. The method named setBorderStyle
- Listing 11. The class named WebApp028
- Listing 12. Beginning of the class named GUI
- Listing 13. Get references to the panels
- Listing 14. Set the style properties on the panels
- Listing 15. Add the labels to the panels
- Listing 16. Register action listeners on the labels
- Listing 17. Set size of Web page and add it to the frame
- Listing 18. Implement the behavior of the application
- Listing 19. Track changes in the size of browser window
- Listing 20. Complete program listing
I also recommend that you study the other lessons in my collection of online Java tutorials. You'll find a consolidated index at www.DickBaldwin.com.
And for additional resources, see the material referenced in the Resources section of this tutorial.




