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
1
Java Academy
2
Part II: Intermediate Java
3
Java Fonts
4
The Font Object
5
Font Name
6
Font Style
7
Font Size
8
Font Metrics
9
FontMetrics Object
10
The drawString Method
11
AppletDemo.java
12
Java Font Model
13
The stringWidth Method
14
Centering a String Horizontally
15
Centering a String Vertically
16
Centering Two Strings
17
Centering n Strings
18
Working With Color
19
RGB Color Format
20
Hexadecimal RGB Values
21
Color Parameters
22
Color Constants
23
Comparing Colors
24
Storing and Accessing Colors
25
Two-dimensional Array
26
Nested Loops
27
A Hashtable of Colors
28
The SystemColor Class
29
An Observation
30
Object-Oriented Geometry
31
Object-Oriented Programming
32
Multiple Classes
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
42
TriangleTest Applet
43
TriangleTest Applet (cont'd)
44
Reusable Classes
45
Multiple Source Files
46
Quadrilateral Class
47
Quadrilateral Constructor
48
QuadrilateralTest.java
49
Another Example
50
The Point Class
51
The Octagon Class
52
An Octagon Constructor
53
The addPoint Method
54
Overloading a Method
55
The Octagon Constructor Again
56
A Different Approach
57
A Subclass of Polygon
58
The Hexagon Class
59
The MyPolygon Class
60
Graphical User Interfaces
61
GUI Components
62
Labels
63
Buttons
64
The ActionEvent Class
65
Java Interfaces
66
The ActionListener Interface
67
Handling Button Events
68
The addActionListener Method
69
ButtonTest.java
70
The actionPerformed Method
71
Delegation Event Model
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
78
TextFieldTest.java
79
Text Areas
80
TextArea Constructors
81
TextArea Scrollbars
82
TextArea Scrollbars (cont'd)
83
TextAreaTest.java
84
Item Events and Listeners
85
Events and Listeners Compared
86
Checkboxes
87
Checkbox Constructors
88
The ItemListener Interface
89
An Array of Checkboxes
90
Processing the Checkboxes
91
Handling Item Events
92
The CheckboxGroup Class
93
Creating a CheckboxGroup
94
Handling CheckboxGroup Events
95
The Choice Class
96
The addItem Method
97
Handling Choice Events
98
AWT Scrollbars
99
The Scrollbar Constructor
100
Scrollbar Properties
101
Scrollbar Events
102
AdjustmentListener Interface
103
Scrollable Lists
104
The List Constructor
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