Objectives of the training
This training aims to enable you to master the development of rich interfaces with Java Swing using advanced API features that are fully adapted to run on multiple environments.Targeted audience
Java developers, designers, project managers, technical architects.Prerequisite
Fundamental Java (classes, packages, events). Good understanding of event-driven programming. Basic knowledge of graphical user interfaces (buttons, menus, dialog boxes). Knowledge of the MVC pattern. Basic knowledge of threading (for responsive UI).Trainers
Benefits for Participants
• Master the creation of rich Swing client interfaces
• Master user event management in HMIs
• Use design patterns for modular architecture
• Use advanced components and know how to create reusable components
• Improve ergonomics with absolute positioning and look and feel
• Facilitate application deployment with Web Start technology
Course architecture
API Technical Architecture
• History of Swing
• Software engineering exercise to discover components
• The MVC model in graphical components
• Practical work: Software engineering exercise to discover components
Creating a simple interface based on specifications
• Assembling windows and components
• Arranging elements with layouts
• Practical work: Starting the leave management application, creating windows and placement managers
Responding to user events with listeners
• Understanding the Observer pattern
• Implementing internal and anonymous classes
• Practical work: Place Swing components (such as JButton) in the leave entry form and manage their events via internal and anonymous classes, implement dedicated classes
Set up a maintainable MVC2-type architecture
• Differences between technical and functional events
• Create a controller for the application's use cases
• Use the Command pattern for business logic
• Maintain the navigation context and associated information
• Practical work: Manage navigation in the application, following the MVC paradigm
Use advanced Swing components and their models
• Lists and their models (data, editing, and display)
• Tables and their models
• Tree structures and their models
Develop complex and user-friendly interfaces
• Components for creating menus
• Complex windows with advanced containers: scrollbars, internal windows, etc.
• User-friendly design with absolute or relative component layout
• Graphic enhancement with customizable and portable look and feel styles
• Use drag and drop
• Practical work: Improve the presentation and ergonomics of the application using advanced Swing components
Creating intelligent components
• Creating a JavaBeans Swing component
• Events for processing data changes
• Surface controls and rollback on component state changes
• Practical work: Create a JavaBean to control and save data entered by the user
Advanced aspects
• Use Java Web Start for network deployment
• Comparison with Eclipse RCP
• Practical work: Package and deploy the leave management application for remote use
Pedagogical details
Type of training
Private or personalized training
If you have more than 8 people to sign up for a particular course, it can be delivered as a private session right at your offices. Contact us for more details.
Request a quotePrivate or personalized training
If you have more than 8 people to sign up for a particular course, it can be delivered as a private session right at your offices. Contact us for more details.
Request a quote