|
Level: Intermediate
Chad Woolley (thewoolleyman@gmail.com), Software Developer, Ionami
08 Nov 2005
This tutorial introduces you to the Spring framework and the concept of dependency injection (also known as Inversion of Control), in the context of writing a simple Java Swing GUI application. You will develop a complete, working application from the ground up. You'll also get a taste of the Spring Rich Client Project, a new framework for developing Swing applications under Spring. You'll come away with an appreciation of Spring's versatility and the ways in which it can ease your development tasks.
In this tutorial This tutorial will help you learn the basics of the Spring framework for application development, using Swing, and dependency injection, also known as Inversion of Control (IOC). After a brief overview of Spring and dependency injection, the bulk of the tutorial is hands-on, walking you step-by-step through creating a fully functional Swing application -- a to-do list program -- using Spring. The walk-through includes three options for a build environment, with detailed setup instructions for each one. You'll learn the basic use and benefits of the Spring framework in the process. Explanations of other relevant concepts are included along the way. You'll also take a few side trips to learn some good programming practices in the context of the tutorial code.
Prerequisites - Familiarity with the basics of the Java programming language, conventions for Java bean components, and experience with basic application design and development in the Java language.
- Basic knowledge of some build environment -- either Eclipse, Apache Ant, or Apache Maven (see Resources). But even if you are unfamiliar with these environments, you can follow the tutorial's fairly detailed instructions for using them. If you have problems with one, you can try one or both of the other two.
- Basic knowledge of XML syntax -- elements, attributes, and how to maintain a well-formed XML document (see Resources).
- Some basic familiarity with the Swing API, although the tutorial attempts to avoid the use of complex Swing code.
System requirements You need a computer with a JDK installed (JDK 1.5 is required to run the Rich Client Project demo in the final section) and an Internet connection for downloading the required tools and libraries. One of the following is required, or you can use your own build environment or IDE:
Duration Under two hours
Formats
HTML, PDF
|