Many different Java Application Programming Interfaces (APIs) are used in application programming. As you learn how to create buttons or write text to files, figuring out how to fit the technologies together into a single application can be difficult and confusing. Seeing an application built from the ground up can be more useful than just reading how to make a menu bar or read a file into a Graphical User Interface (GUI).
This six-part tutorial details application development, using a single fully-featured application as an example. You'll learn how to:
You'll also learn about packages and, how to package an application for distribution, and the Java technologies referred to as Java I/O, Project Swing, and AWT.
The application created for this series tutorial is a simple dive log, such as one a scuba diver might use to record dive depth, water temperature and conditions, and amount of air consumed.
Although a certified scuba diver might find that this application falls short of being a robust, detailed dive log, it serves well as an example application, demonstrating features commonly used in application programming.
The tutorial begins with simple concepts and leads to more complex programming techniques, introducing deeper concepts and repeating programming techniques throughout.
This tutorial is aimed at beginning programmers, or developers new to Java technology. Though programming concepts are introduced and many explained in great detail, this is not intended to be a comprehensive tutorial for all Java programming syntax.
You don't need to be a certified scuba diver to follow this tutorial (though diving is a lot of fun and you might consider trying it). You also don't need a lot of experience with the Java programming language.
Familiarity with programming is helpful, and it's recommended that you at least understand what the Java platform is and how to set it up on your computer.
If Java technology is new to you, read the following articles before starting the tutorial:
The following software is required to compile the code in this tutorial:
.javaextension. Examples are given in the tutorial.
If a dive log is not to your liking, feel free to change the text and code to better suit your needs. Perhaps you'd rather design a diet or exercise log, or some other kind of application. You can learn a lot by taking prewritten code and changing it. In fact, that is the theme of object-oriented programming: Reuse, don't start from scratch.
As each part of the tutorial is published, the titles below will become available. With that in mind, start the tutorial:
Part 1: Application Objects, Classes, Constructors, and Methods(October 2001)
Part 2: Inheritance, Images, Text, and Layouts(December 2001)
Building an Application Quiz Test what you learned from the Building an Application tutorial series parts 1 and 2 about basic Java programming fundamentals.
Part 6: Displaying HTML and Activating Links (Not yet available)