| |
objectives
- learn the fundamental mechanics of Swing components
- practice working with the essential elements
such as layout, widgets, and events
- understand the patterns that Swing is based
on
- review the more complex aspects of designing
a user interface, eg optimization with threads,
and meta-programming
- try out some of the harder Swing components,
such as JTree
overview
Swing is the replacement for AWT. It is
a very clean design, based on well known design
patterns, such as Observer. At root it is
a set of components. We focus on showing
you the underlying mechanisms - this deeper insight
makes it far simpler to work with the whole collection
of Swing components.
The course is suitable for Java developers.
The course is extremely practical, developed
and taught by consultants with at least ten years'
experience in software design. Ideally this
training should be preceded by the course: design
and develop applications with Java.
content
1.
Basic layout
- using JFrame and widgets
- JComponent
- layouts
- JApplet
2. Simple user input
- button handling
- menu handling
- actions
- mouse handling and popup menus
3. Swing widgets
- widgets with simple state
- radio buttons and check boxes
- widgets with complex models
- JList
- JTable
- decorator patterns to filter tables
- JTree
4. More graphics
- GridBag layout
- dialogs and JOptionPane
- mnemonics and accelerators
- focus
- tooltips
|
5.
Event handling in Swing
- event-handling basics
- Java event listeners
- listeners supported by Swing components
- common events
- listener API
- event-handling for each Swing component
6. Threads in Swing
- Java threads and the differences in
Swing
- thread theory: philosophers at lunch
- Runnable interface and the Thread
class
- critical sections, locks, synchronization
- GUI optimization
- review of time-consuming tasks
- optimize event-dispatching
- repeat operations
- waiting for messages
7. Patterns in Swing
- MVC(Model View Controller)
- Observer (Publish/Subscribe)
- Interface Decoupling
8. Meta-programming
A review of dynamic programming with
Swing components |
|
Please
note, when taught at your site, this
course is customizable. Modules
can be adapted, removed, added from
other courses, or even created.
|
|
timings
Day 1
1. Basic layout
2. Simple user input
3. Swing widgets
4. More graphics
Day 2
5. Event handling in Swing
6. Threads in Swing
7. Patterns in Swing
8. Meta-programming
To book a public or onsite
course, please contact Clive Menhinick on
+44 (0)161 225 3240, or email: clive@trireme.com.
Alternatively, use the booking form.
©
TriReme International Limited 2001-2006.
All rights reserved.
|