English French German Italian Portuguese Russian Spanish

logo_old

  • Java Training

    javaInterSource offers live instructor-led courses on all important Java-related technologies, including Apache Struts, Enterprise Java Beans (EJB), J2SE Desktop Java Enterprise Edition (Java EE), Java Fundamentals, Java Web Services, JavaServer Faces, JBoss, Java Server Pages (JSP), and Spring.

    Please refer to our detailed course outlines below.

  • About Java

    Java is a programming language originally developed by James Gosling at Sun Microsystems and released in 1995 as a core component of Sun Microsystems' Java platform. The language derives much of its syntax from C and C++ but has a simpler object model and fewer low-level facilities. Java applications are typically compiled to bytecode (class file) that can run on any Java Virtual Machine (JVM) regardless of computer architecture

    Java is general-purpose, concurrent, class-based, and object-oriented, and is specifically designed to have as few implementation dependencies as possible. It is intended to let application developers "write once, run anywhere". Java is considered by many as one of the most influential programming languages of the 20th century, and widely used from application software to web application.

    Read More

  • Course Details Java

    Classes are offered at client sites, at our Geneva training center, and via a live web conference. For detailed course outlines and scheduled classes, please see below.

    To book training, navigate to the course you need, then:

    • For scheduled online classes, register from the choices indicated.
    • If you need an alternative date, time or location, or if you want a live classroom course, click on “request an offer for this course,” to complete the form.

Java Swing Training

 PDF PrintEmail

Course duration

  • 5 Days

Course Outline

This 5-day course introduces the Java programmer to the Java Foundation Classes -- a.k.a. Swing -- the Java environment's comprehensive framework for GUI development. The student will study the fundamentals of the JFC architecture and quickly move to building simple JFC frame-based applications. By the end of the course the student will be comfortable building simple or complex interfaces with the most common Swing controls and classes -- including buttons, lists, combo boxes, checkboxes and radio buttons, text controls, trees, and tables -- controlling multiple windows and dialogs, using panes to manage related interfaces, implementing popup menus, and using data transfer packages for clipboard and drag-and-drop implementations.

The first module of the course provides an introduction to the JFC architecture and standard practices. AWT concepts such as the event model and basic layout management are reviewed as necessary. The standard controls are covered, including labels, text components, buttons, listboxes, and comboboxes. Architectural patterns are emphasized, especially JFC's strict use of the Model-View-Controller paradigm. Understanding the thorough use of this pattern in JFC is critical to using the framework effectively. Event handling is treated, both handling AWT-style events, such as action events from button clicks, and handling events fired by the model that lies under a particular control.

In the second module, more sophisticated and powerful controls are studied: the tree and table controls. Each is presented in a separate chapter, allowing students to dig into the underlying architecture and to develop a firm grasp of the many powerful features lying behind the direct use of the control classes themselves. Especially, customization of the controls using renderers and editors is considered. The final chapter of this module discusses the effective use of the separate model class and object, which pattern is built into all Swing controls, to implement trees and tables that present very large data sets. This allows the student to confront problems common to enterprise-class GUI building, and to find sound solutions using techniques such as lazy evaluation and LRU eviction.

In the third and final module, advanced GUI-management features are studied. Students learn to implement and/or customize scrolling, and to use splitter panes to combine related user interfaces. Popup elements such as dialog boxes, message boxes, and menus are also considered. The module concludes with a treatment of JFC's data transfer model, which empowers clipboard copy, cut, and paste features as well as drag-and-drop. A simple application is developed over the course of this module that implements all the above features.

The course software also includes an optional overlay of workspace and project files to support use of the Eclipse IDE in the classroom. (This requires that the instructor be experienced in use of Eclipse and able to walk students through basic tasks in the IDE.)

  • Understand the basics of the JFC architecture.
  • Build simple GUI applications using JFC.
  • Build more complex GUIs using various JFC controls.
  • Use the many hooks into the JFC architecture to easily customize rendering and editing within JFC controls.
  • Understand the significance of the MVC decomposition in using JFC controls.
  • Build GUI classes that make effective use of events as fired from model, view and controller elements of the GUI itself.
  • Implement JFC GUIs based on existing data structures, and use model implementations to adapt the JFC controls seamlessly to this data.
  • Handle very large data sets, such as remote databases, without degradation of performance or user responsiveness.
  • Implement scrolling, and customize scrolling for a particular scrollable element.
  • Manage complex user interfaces by combining GUI areas with splitter panes and tab panes.
  • Expand an application interface with popup dialogs, message boxes, and popup menus.
  • Use standard dialogs such as file choosers and color choosers.
  • Implement clipboard cut, copy and paste using the JFC data transfer model.
  • Implement drag sources and drop targets for complete drag-and-drop capabilities.
  • Solid experience with Java programming is required.
  1. Introduction to JFC
    1. Introduction to JFC
      1. Abstract Windowing Toolkit Basics
      2. Simple Layout Management
      3. Simple Event Handling
      4. Lightweight Controls
      5. JFC Feature Set
      6. JFC Architecture and Relationship to AWT
    2. JFC Application Design
      1. Role of a JFrame
      2. Building a Frame-Based JFC Application
      3. Panes
      4. Using Dialogs
    3. JFC Components
      1. JFC Component Class Hierarchy
      2. JComponent Features
      3. Simple Control Types
      4. Text Components
      5. Menus
      6. Managing Look and Feel
    4. Architectural Patterns
      1. Observer Pattern
      2. Model-View-Controller Decomposition
      3. Strategy Pattern
      4. JList
      5. Factory Pattern
      6. JComboBox
  2. Trees and Tables
    1. Hierarchical Data and JTree
      1. Presenting Hierarchies
      2. JTree and Supporting Classes
      3. Using the Default Tree Model
      4. Customizing Look and Feel
      5. Implementing a Tree Model
      6. Custom Rendering
      7. Custom Editing
    2. Tabular Data and JTable
      1. Presenting Tabular Data
      2. JTable and Supporting Classes
      3. Implementing a Tree Model
      4. Customizing Look and Feel
      5. Custom Rendering
      6. Custom Editing
    3. Managing the Model
      1. Adapting Existing Data Structures
      2. Very Large Data Sets and GUIs
      3. Caching
      4. Lazy Evaluation Using Tree and Table Models
      5. Limiting the Cache with an Evictor
      6. Anticipating User Requests
  3. Advanced GUI Design
    1. Organizing Application Windows
      1. Viewport Abstraction
      2. JScrollPane
      3. Scrollable Elements
      4. Customizing Scrolling
      5. Tabbed Panes
      6. Splitter Panes
    2. Popup GUI Elements
      1. Dialog Boxes
      2. Message Boxes
      3. Using File Choosers
      4. Customizing File Choosers
      5. Using Color Choosers
      6. Custom Dialogs
      7. Tooltips
      8. Popup Menus
    3. Data Transfer
      1. The Data Transfer Model
      2. Transferable Objects
      3. Data Flavors and MIME Types
      4. The Clipboard API
      5. The Drag-and-Drop API

InterSource Geneva, a premier Information Technology training firm, offers over 400 different courses on server, database and programming technologies, as well as end-user classes for the most popular office, graphics and design applications. We serve clients in Switzerland (Geneva, Lausanne, Bern, Basel, Zurich) and throughout Europe (France, Germany, Austria, Finland, Sweden, England, Netherlands, Spain, etc.).


InterSource offers custom, private courses at client sites, standard public courses in our Geneva classroom, and online training via live Web conference. Training is offered in English and many other languages (Francais, Deutsch, Espanol, Italiano.)


For an overall view of our offerings, please visit us at www.intersource.ch.