- Tel: +44 (0)1275 859666
EC24 - Java Swing Programming Workshop - 2 Days
Course Description
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.
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
- IntelliJ
- NetBeans
- JBuilder
Customisation
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
- A Brief History Of Swing
- Introduction to Swing Components
- Components and the Content Pane
- JFrame Structure
- JComponent
- JFrame Structure
- 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
- Buttons
- Layout Managers
- FlowLayout
- GridLayout
- BorderLayout
- BoxLayout
- Absolute Positioning without a Layout Manager
- GridLayout
- Borders
- Simple Borders
- Title Borders
- Compound Borders
- Title 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
- Inner Classes and Anonymous Inner Classes
- Trees
- JTree
- Modifying The Look Of The Tree
- Modifying The Trees Default Functionality
- Tree Events
- Tree Selections
- Modifying The Look Of The Tree
- Tables
- Tables
- Custom Models
- Cell Editors and Renderers
- Table Events
- Firing TableModelEvents
- Custom Models
- Formatted Text Fields
- Defining Formats
- Formatter Factories
- Custom Formatters
- Input Verifiers
- Formatter Factories
- Threads
- Introduction
- Using Threads
- SwingWorker
- Timers
- Progress Bars
- Progress Monitor
- Using Threads
- Advanced Layout Management – GridBagLayout
- Setting Constraints
- Internal Frames
- Internal Frames
- Manipulating Internal Frames
- Adding components to an Internal Frame
- Internal Frame Events
- Internal Dialogs
- Manipulating Internal Frames
- 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
- Adding Components to a GUI
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.