Foilset Search Full Index for Basic foilset

Java Tutorial 98- 3: Graphics and the Abstract Windowing Toolkit

Given by Geoffrey C. Fox, Nancy McCracken at NAVO Tutorial on Sept 23 1998. Foils prepared Sept 21 1998

This version of Part3 is Fully Upgraded to Java1.1 with critical AWT changes
In Part 1 and 2 of the Tutorial We Covered:
  • Overview including History and alpha versus production issues
  • Comparison of Java and Javascript
  • Overall Java Philosophy and Features including security etc.
  • Java Programming Language
  • Introduction to Applications,Applets and their Invocation from HTML
  • "Hello World" and Basic Graphics Applets
  • Object Oriented and Class Structure
  • Methods, Constructors etc.
  • Interfaces
  • Exceptions
In This Part of the Java Tutorial We Cover:
Introduction to Threads
Graphics in more detail
  • Animator Class
  • Downloading and Drawing Images
Abstract Windowing Toolkit
  • Keyboard and Mouse Events
  • Components, Actions, Layouts
And in the Remaining Part of the Java Tutorial We Cover:
  • Threads in More Detail
  • Useful Classes such as Object String etc.
  • Networking and I/O
  • Futures and HPCC Implications


Table of Contents for Java Tutorial 98- 3: Graphics and the Abstract Windowing Toolkit

There are two types of foils -- html and image which are each available in basic and JavaScript enabled "focused" style
(basic:)(focus style:) Denote Foils where Image Critical
(basic:)(focus style:) Denote Foils where Image has important information
(basic:)(focus style:) Denote Foils where HTML is sufficient
denotes presence of Additional linked information which is greyed out if missing

1 Java Tutorial 1998 Part 3: Graphics and the Abstract Windowing Toolkit
2 Applets and Graphics
3 The java.awt.Graphics class
Simple Graphics Examples for Foil 4 4 Methods for drawing in the Graphics Class
5 Graphics is Event-Driven: paint method
6 Changing Graphics: repaint method
FontMetrics example for Foil 7 7 The java.awt.Font and FontMetrics Class
Drawing more simple shapes with new colors 8 The java.awt.Color Classes
More Graphics Examples for Foil 9 9 Graphics Examples
10 Introducing a Single Thread
11 Introduction to Threads
12 Example showing the standard thread methods
A digital clock with one thread 13 Example showing thread methods, continued
14 Motion (or Animation) Example using threads and parent/child hierarchy
Moving Rectangles showing an applet thread and parent/child classes for Foil 15 15 Designing the Classes
Moving Rectangles showing an applet thread and parent/child classes for Foil 16 16 The Class Hierarchy of this example
17 Images and Double Buffering
18 Getting Images Downloaded
19 Drawing Images to the applet window
Look in the init method to see the use of prepareImage to determine when image downloading is finished. 20 Image Downloading -- imageObserver, MediaTracker
An image example 21 An Image Drawing Example
22 Flickering in Applets and its Solution
23 The default Update(Graphics g) Method
24 Double Buffering to Reduce Flicker - I
25 Double Buffering to Reduce Flicker - II
Movable Objects example with double buffering and boundary checking for Foil 26 26 Double Buffering
27 Abstract Windowing Toolkit (AWT):
28 AWT GUI Components
29 Picture of the AWT Component Class and its inheritance
30 Basic AWT Components
Labels for Foil 31 31 Basic AWT Component: Label
Buttons for Foil 32 32 Basic AWT Component: Button
33 The AWT Event Model
34 Setting up ActionEvents for a Button
API for class Event 35 The Event Classes
TextFields and TextAreas for Foil 36 36 AWT Components -- Text Fields & Areas
Checkboxes for Foil 37 37 AWT Components -- Checkbox
 for Foil 38 38 AWT Components -- Radio Buttons , CheckboxGroup
The remaining basic Components for Foil 39 39 Some Further AWT Components -- typical subunits of panels
API for class KeyEvents 40 Keyboard and Mouse Events
API for class MouseEvent 41 Mouse Events
MouseEvents examples for Foil 42 42 Using Mouse Events for User Interaction
43 Separate Classes for Event Listeners
Adapter classes for Foil 44 44 Adapter Classes
45 Abstract Windowing Toolkit (AWT): Layouts
46 Layout of Components in a Panel
47 Brief Description of LayoutManagers
BorderLayouts for Foil 48 48 Description and Example of BorderLayout
API for class FlowLayout 49 FlowLayouts in detail
GridLayouts for Foil 50 50 GridLayouts
More Layout examples for Foil 51 51 Hierarchical Use of Layouts
52 Abstract Windowing Toolkit (AWT): More Components
API for class Canvas 53 AWT Component: Canvas
Window and Frame for Foil 54 54 Some Further AWT Components: Window (Frame and Dialog)
classes for menus in frames for Foil 55 55 Frames can have MenuBars
API for class Dialog 56 Dialog Boxes
new component classes for Foil 57 57 New Components: ScrollPanes and PopupMenus
58 PPT Slide

Full WebWisdom URL and this Foilset Search
This contains all WebWisdom links preceded by those referenced in this foilset
© Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Sat Nov 28 1998