| EC24 - Java Swing Programming |
| Duration | 2 Days (customisation) |
| Availability |
|
Course Description
This course is targeted at Java developers with the need to write Java GUI applications. Covering both basic and more advanced features, including the new features introduced with Java SE 6.
Pre-requisites
Delegates should have a good all round knowledge of the Java programming language with some experience of creating Java Applications.
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 and advanced layout techniques
- Code multi threaded GUI applications
- Create custom models for the more complex components, e.g. Tables and Trees
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
For on-site courses (i.e. at your premises), we are more than happy to tailor the course agenda to suit your exact requirements. In many cases, we are able to build your in-house standards and naming conventions into the delivered course.
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
- Pop-up menus
- Tool Bars
- JScrollPane
- Tabbed Panes
- Dialogs
- Advanced Dialogs
- Layout Managers
- FlowLayout
- GridLayout
- BorderLayout
- BoxLayout
- GridBagLayout
- 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
- Listeners that All Swing Components Support
- Other Listeners that Swing Components Support
- Actions
- Custom Key Bindings
| - Trees
- JTree
- Modifying The Look Of The Tree
- Modifying The Trees Default Functionality
- Tree Events
- Tree Selections
- Tables
- Tables
- Custom Models
- Cell Editors and Renderers
- Table Events
- Firing TableModelEvents
- Sorting and Filtering
- Formatted Text Fields
- Defining Formats
- Formatter Factories
- Custom Formatters
- Input Verifiers
- Threads
- Introduction
- Using Threads
- SwingWorker
- Timers
- Progress Bars
- Progress Monitor
- Internal Frames
- Internal Frames
- Manipulating Internal Frames
- Adding components to an Internal Frame
- Internal Frame Events
- Internal Dialogs
- Miscellaneous
- Global Exception Handling
- Splash Screens
- Mouse Cursor Control
- System Tray
- 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.
|