Target Audience
This course is targeted at Java developers with the need to write Java GUI applications.
Pre-requisites
Delegates should have a good all round knowledge of the Java programming language with some experience of creating Java Applications.
Course Objectives
During the course the student will gain practical experience in using many aspects of Swing. Although not essential for this course, the WSAD/RAD Visual Editor for Java can be included if required.
On completion of this course the student will be able to:
- Use and understand the different components supplied with Swing
- Create simple or complex GUIs using simple or advanced layout techniques
- Code multi threading GUI applications
- Create custom models for the more complex components, e.g. Table and Trees
Course Environment
Development will be performed using:
- Eclipse
- NetBeans
- Websphere Studio Application Developer
- Rational Application Developer
- JBuilder
- the Java Development Kit (JDK) plus a text editor
Course Details
- INTRODUCTION
- Java foundation classes
- A brief history of swing
- Swing GUI components
- The JFrame component
- Look and feel
- INTRODUCTION TO SWING COMPONENTS
- Components and the content pane
- JFrame structure
- JComponent
- SWING COMPONENTS
- Labels
- Buttons
- JButton
- Check boxes
- Radio buttons
- Lists and combo boxes
- Text fields
- Text areas
- Menu bars
- Tool bars
- JScrollpane
- Tabbed panes
- Dialogs
- Advanced dialogs
- LAYOUT MANAGERS
- Flowlayout
- Gridlayout
- Borderlayout
- Boxlayout
- Absolute positioning without a layout manager
- BORDERS
- Simple borders
- Title borders
- Compound borders
- EVENT HANDLING
- Introduction to event handling
- Inner classes and anonymous inner classes
- Using adapters
- Event objects
- Mouse Events
- Handling window events using interfaces
- Listeners that all swing components support
- Other listeners that swing components support
- Actions
- ADVANCED SWING
- JTree
- Tables
- Custom models
- Cell editors and renderers
- Table events
- THREADS
- Introduction
- SwingUtilities, invokeLater, invokeAndWait
- Using threads
- Swingworker
- Timers
- Progress bars
- Progress monitor
- ADVANCED LAYOUT MANAGEMENT - GRIDBAGLAYOUT
- Setting constraints
- VISUAL EDITOR FOR JAVA (for RAD, if applicable)
- The Visual Editor layout and views
- Adding Components to a GUI
- Changing the properties of components
- Modifying Layouts
- Code Synchronisation
Course Format
Examples are used extensively, ranging from simple screen captures to full walk through's. These are supplied at the start of the course and it is encouraged that the delegates execute and 'experiment' with these under the instructor's guidance as they are introduced.
The comprehensive Student Guide supplied is fully indexed serving as a useful reference tool long after the course has finished. Delegates will also be able to access a free help-line with technical questions relating to topics covered on the course.
|