RTD Training & Development

Java User Interface Programming with Swing

Call us on +44 (0)1225 66 72 72 or send us a message

Java User Interface Programming with Swing

Note: During the Covid-19 crisis, courses will only be delivered over the web

4 days hands-on £1,940+VAT

This course can be delivered over the web

Next scheduled date:
Monday January 20th, 2025 Enrol Now!

Can't wait that long? It may be possible to deliver this course at an earlier date. Contact us if you're interested
Hands-on presentation of the Swing architecture, components and usage in developing graphical user interfaces

Outline

Swing Component Features

  • Common features
  • Main Swing Packages
  • Similarities & differences to AWT

Containers

  • Intermediate Containers
  • Adding Components
  • Top Level Containers
  • The Root Pane
  • The Content Pane

Layout Managers

  • Component management
  • Review of simple layout managers
  • Card Layout
  • GridBag Layout
  • Box Layout
  • Struts, Glue and Rigid Areas
  • Other Layout Options

Event Handling Review

  • Events
  • Event Categories
  • Listeners Supported by Components
  • Using an Inner Adapter Class
  • Using an Anonymous Inner Class

Simple Swing Components

  • JComponent
  • Common operations
  • JLabel features
  • Buttons
  • Unformatted Text Components
  • Combo Boxes
  • Scrollbars and Sliders
  • Timers and Progress Bars

The Keyboard Interface

  • Key Events
  • Virtual Keys
  • Managing Focus
  • Tab Order
  • KeyStrokes

Menus and Toolbars

  • Building Menus
  • Menu Options
  • Pop-up Menus
  • Toolbars
  • Using Actions

Dialog Boxes

  • Option Dialogs
  • File Dialogs
  • File Filters
  • File Views
  • Choosing Colours
  • Custom Dialogs

Specialised Containers

  • JScrollPane
  • JSplitPane
  • JTabbedPane
  • MDI Applications

More Complex Swing Components

  • JList
  • JTable
  • JTreeView
  • JSpinner

Text Components

  • The Document model
  • Simple Text Components
  • JTextPane
  • JEditorPane

Extra Features

  • Look and Feel
  • The Clipboard
  • Drag and Drop
  • The Undo Package
  • Supporting assistive technologies

Java2D

  • Fonts
  • Geometrical shapes
  • Areas, strokes and paint
  • Coordinate transformations
  • Transparency and composition
  • Image manipulation
  • Efficiency tradeoffs

Printing

  • Creating printer jobs
  • Print-related dialog boxes
  • Printing uniform documents
  • Printing complex documents
  • Implementing print-preview

Overview

Java is a very effective environment for professional and enterprise software development. The Java Foundation Classes (JFC) and their Swing components take GUI programming to a new level, allowing developers to create lightweight components with a pluggable look-and-feel. Additional functionality allows developers to build professional, robust applications and applets.

In this course, you gain experience using JFC to develop portable GUI applications. You acquire the skills needed to design GUI architectures that can be reused in multiple projects without modification.

Objectives

On successful completion of this course, participants will be able to:

  • Implement GUI that facilitates a customizable look and feel
  • Develop applications using key foundation services
  • Develop graphic and GUI components using Swing
  • Use the features supported in Java for 2-D graphics
  • Use Java for client-side applets

Audience

This course is for those involved in creating GUI applications, including Java programmers, designers, analysts, engineers and managers. It is also for Java programmers who are already familiar with the basics of the Java graphical frameworks and want to explore the capabilities of Swing, and for programmers with some Java programming experience who would like to explore the potential of Java for designing GUI's and other graphical applications.

Prerequisites

Participants are expected to be familiar with the features of the Java Standard Edition (JSE) covered in the Java Programming course. A knowledge of some topics covered in the Java Advanced Programming course is also beneficial.

share buttons
share on twitter
share on linkedin
share on facebook
share by email