JA17 - Creating User Interfaces using Swing
Duration2 Days (customisation)
Availability

Course Description

This course shows how to create contemporary user interfaces in Java using Swing. Swing provides a rich set of components for building desktop GUI applications, including table controls, tree controls, list controls, and so on. Swing also provides APIs for drag-and-drop, accessing the Desktop and the System Tray, and performing copy-and-paste operations with the Clipboard. This course covers all of these features, and also addresses advanced issues such as defining custom models, renderers, and editors.

Pre-requisites

At least 6 months Java programming experience.

Objectives

What you will learn:

  • Using Swing UI controls
  • Laying out the user interface
  • Using data-driven controls
  • Defining custom models
  • Customizing renderers and editors
  • Implementing internationalization and accessibility

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

Getting Started with Swing
Introduction to Swing
Swing example application
Containers and Components
Overview of panes and components
Using panes in a UI
Adding components to panes
Layouts and Dialogs
Overview of layout managers
Using layout managers effectively
Displaying dialog boxes
Tables and Trees
Overview of JTable
Configuring and using JTable
Overview of JTree
Populating a JTree
Handling events and inserting/removing nodes
Defining Custom Models
Recap MVC concepts
Defining a custom table model
Defining a custom tree model
Defining Custom Renderers and Editors
Overview of renderers and editors
Defining a custom cell renderer
Defining a custom cell editor
Globalization and Localization
Internationalization fundamentals
List resource bundles
Component orientation
Accessibility
Overview of accessibility
Accessibility guidelines
Defining actions and key bindings
Drag and Drop and Data Transfer
Overview of data transfer
Adding data transfer support to components
Extending Dnd support
Additional techniques
Integrating with the Desktop and the System Tray
Integrating with the desktop
Accessing the system tray