Foilset Search Full Index for Basic foilset

Java Programming for Middle and High School Students II: Intermediate Java

Given by Tom Scavo at NPAC/ECS Java Academy on February to April 98. Foils prepared 13 July 98

Java Fonts
Working With Color
Object-Oriented Geometry
Graphical User Interfaces
Note: This tutorial assumes you've completed Part I


Table of Contents for Java Programming for Middle and High School Students II: Intermediate Java

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

Important URLs for Foil 1 1 Java Academy
Java Academy, Part I:  Elementary Java 2 Part II: Intermediate Java
3 Java Fonts
The java.awt.Font Class 4 The Font Object
A List of Fonts 5 Font Name
6 Font Style
7 Font Size
8 Font Metrics
The java.awt.FontMetrics Class 9 FontMetrics Object
The java.awt.Graphics.drawString Method 10 The drawString Method
The AppletDemo Applet 11 AppletDemo.java
The FontModel Applet 12 Java Font Model
The java.awt.FontMetrics.stringWidth Method 13 The stringWidth Method
The FontMetricsTest Applet 14 Centering a String Horizontally
The FontMetricsTest2 Applet 15 Centering a String Vertically
The FontMetricsTest3 Applet 16 Centering Two Strings
The FontMetricsTest4 Applet 17 Centering n Strings
18 Working With Color
The java.awt.Color class 19 RGB Color Format
20 Hexadecimal RGB Values
21 Color Parameters
Pre-defined Colors for Foil 22 22 Color Constants
23 Comparing Colors
The ColorBoxes3 Applet 24 Storing and Accessing Colors
25 Two-dimensional Array
2D Arrays and Nested Loops for Foil 26 26 Nested Loops
The ColorString Applet 27 A Hashtable of Colors
The SystemColors Applet 28 The SystemColor Class
29 An Observation
30 Object-Oriented Geometry
31 Object-Oriented Programming
32 Multiple Classes
The TriangleTest Applet 33 TriangleTest.java
34 A Triangle Class
35 Multiple Constructors
36 No-argument Constructor
37 Another Constructor
38 Another Constructor (cont'd)
39 Instance Methods
40 Instance Methods (cont'd)
41 Triangle Class Revisited
The TriangleTest Applet 42 TriangleTest Applet
43 TriangleTest Applet (cont'd)
44 Reusable Classes
Multiple Source Files for Foil 45 45 Multiple Source Files
The Quadrilateral Class 46 Quadrilateral Class
47 Quadrilateral Constructor
The QuadrilateralTest Applet 48 QuadrilateralTest.java
The OctagonTest Applet 49 Another Example
The java.awt.Point Class 50 The Point Class
The Octagon Class 51 The Octagon Class
52 An Octagon Constructor
The java.awt.Polygon.addPoint Method 53 The addPoint Method
54 Overloading a Method
55 The Octagon Constructor Again
56 A Different Approach
The HexagonTest Applet 57 A Subclass of Polygon
The Hexagon Class 58 The Hexagon Class
The MyPolygon Class 59 The MyPolygon Class
60 Graphical User Interfaces
61 GUI Components
Labels for Foil 62 62 Labels
Buttons for Foil 63 63 Buttons
The java.awt.event.ActionEvent Class 64 The ActionEvent Class
65 Java Interfaces
The java.awt.event.ActionListener Interface 66 The ActionListener Interface
67 Handling Button Events
The java.awt.Button.addActionListener Method 68 The addActionListener Method
The ButtonTest Applet 69 ButtonTest.java
70 The actionPerformed Method
71 Delegation Event Model
Text Fields for Foil 72 72 Text Fields
73 A Separate Event Handler
74 The TextFieldHandler Class
75 Handling TextField Events
76 A Flexible Constructor
77 Listening for TextField Events
The TextFieldTest Applet 78 TextFieldTest.java
Text Areas for Foil 79 79 Text Areas
80 TextArea Constructors
81 TextArea Scrollbars
82 TextArea Scrollbars (cont'd)
The TextAreaTest Applet 83 TextAreaTest.java
Item Events and Listeners for Foil 84 84 Item Events and Listeners
85 Events and Listeners Compared
Checkboxes for Foil 86 86 Checkboxes
87 Checkbox Constructors
The java.awt.event.ItemListener Interface 88 The ItemListener Interface
The CheckboxTest Applet 89 An Array of Checkboxes
90 Processing the Checkboxes
91 Handling Item Events
The java.awt.CheckboxGroup Class 92 The CheckboxGroup Class
The CheckboxGroupDemo Applet 93 Creating a CheckboxGroup
The CheckboxGroupTest Applet 94 Handling CheckboxGroup Events
Choices for Foil 95 95 The Choice Class
The java.awt.Choice.addItem Method 96 The addItem Method
The ChoiceTest Applet 97 Handling Choice Events
Scrollbars for Foil 98 98 AWT Scrollbars
99 The Scrollbar Constructor
100 Scrollbar Properties
Adjustment Events and Listeners for Foil 101 101 Scrollbar Events
The ScrollbarTest Applet 102 AdjustmentListener Interface
Lists for Foil 103 103 Scrollable Lists
104 The List Constructor
The ListTest Applet 105 List Events

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