A Closer Look at HelloWorld

Table of contents:

Summary

This discussion glossed over many details and left some things unexplained, but you should have some understanding now of what you can build with Swing components. You should now have a general understanding of the following:

  • How to set up the containment hierarchy of each Swing component. To add a component to a container, you use some form of the add method.
  • How to implement many standard GUI components, such as buttons, labels, combo boxes, and radio buttons, which you combine to create your program's GUI.
  • How to change the layout of components by using layout managers.
  • How to handle events and accommodate threads in Swing programs. Recall that the event-handling mechanism is based on the AWT event-handling model in which you register event listeners upon the components which generate events.

For more complete information on Swing, see the book The JFC Swing Tutorial or the online tutorial: http://java.sun.com/docs/books/tutorial/uiswing/index.html

Getting Started

Object-Oriented Programming Concepts

Language Basics

Object Basics and Simple Data Objects

Classes and Inheritance

Interfaces and Packages

Handling Errors Using Exceptions

Threads: Doing Two or More Tasks at Once

I/O: Reading and Writing

User Interfaces That Swing

Appendix A. Common Problems and Their Solutions

Appendix B. Internet-Ready Applets

Appendix C. Collections

Appendix D. Deprecated Thread Methods

Appendix E. Reference



The Java Tutorial(c) A Short Course on the Basics
The Java Tutorial: A Short Course on the Basics, 4th Edition
ISBN: 0321334205
EAN: 2147483647
Year: 2002
Pages: 125

Flylib.com © 2008-2020.
If you may any questions please contact us: flylib@qtcs.net