GUI Applets with AWT and Swing

Recommended Duration:
3 Days
Version
Java 2.0 (Java 1.3)
Course covers Java 2 (aka. Java 1.2-1.4), however, most topics and examples also apply to Java 1.1 through Java 5 (Java 1.5).
Benefits
Participants will learn to create, test, and deploy Graphical User Interface (GUI) Java applets. Hands-on exercises reinforce new concepts.
Audience
Experienced Java programmers needing to create Applets or Applications using a Graphic User Interface (GUI).
Prerequisites
Students must have Java experience or have completed "Java Client-Side Programming I", "Java Server-Side Programming I" or equivalent.
Major Topics
  • Windowed environments and Event-driven interfaces
  • Swing application vs. Swing applet
  • Introduction to AWT (Abstract Windowing Toolkit): Graphics, Fonts, Canvas components, Drawing images, Simple animation
  • Classes: Frame, Canvas, Panel
  • Introduction to Swing and JFC (Java Foundation Classes): Class architecture, Swing package components, Heavy and lightweight components, Drag and drop, Java 2D graphics, Look and feel issues
  • Containers: Frame, Panel, Dialog
  • Layout managers: FlowLayout, BorderLayout, CardLayout, GridLayout, GridBagLayout
  • GUI components: Button, Canvas,label, Checkbox, Choice, List, Combo box, Scrollbar, TextArea, ScrollPane, Menu Bar
  • Tables, Trees, Text areas
  • Events: Input events, Mouse, Container, Window, Action, Item, Text, Adjustment
  • Delegation model
  • Animation and sprites
  • Introduction to threads
  • Multimedia support: audio clips
Exercises
There are eight machine exercises. Exercises use Sun J2SE JDK. IDEs such as Eclipse, WSAD, JDeveloper, JBuilder, etc... may be used upon request.