search for books and compare prices
Tables of Contents for Programming With Microsoft Afc
Chapter/Section Title
Page #
Page Count
Acknowledgments
xiv
2
About the Authors
xvi
1
Introduction
xvii
 
Chapter 1 AFC Fundamentals
1
32
History
1
2
Package Overview
3
3
Compatibility with Non-Microsoft Java Implementations
4
1
AWT Interoperability Classes
5
1
JavaBeans Support
5
1
Accessibility
6
1
Some Terminology
6
1
User-Interface Base Classes
6
2
Components
8
10
Component Method Review
16
1
Component States
17
1
State Components
18
1
Containers
18
7
Container Method Review
23
1
State Containers
24
1
Header and Child Components
24
1
Selectors
25
4
Selector Method Review
28
1
Windows
29
2
Window Method Review
30
1
Window Subclasses
31
1
Summary
31
2
Part I User-Interface Classes
33
424
Chapter 2 Applets and Applications
35
26
Applets
35
11
Lifecycle of an Applet
36
2
AFC Applets
38
1
AFC Applets by Example
39
2
Applet Methods
41
1
Applet HTML Tags
41
1
Applet HTML Tags by Example
42
1
Using the Appletviewer to View Your Applet
43
1
Applet Frames
44
1
Applet Parameters
44
2
Applet Restrictions
46
1
Applications
46
2
Java Applications by Example
46
1
Application Frames
47
1
Running as an Applet and Application
48
4
Building a User Interface
52
7
Adding Components
52
1
Using Containers
53
1
Loading Images
54
1
"Guess My Number" Example
55
2
Tool Tips
57
2
Summary
59
2
Chapter 3 Events
61
32
Event Basics
62
1
How Events Originate
62
1
Listening for Events
62
1
JDK 1.0 Event Handling
63
13
Event Types
64
1
Other Methods for Handling Events
65
2
Event Propagation
67
2
Event Objects
69
1
Event Modifiers
70
1
Push-Button Events Example
70
2
Window-Destroy Events
72
2
"Guess My Number" with Events
74
2
JDK 1.1 Event Handling
76
1
Event Listeners
77
8
Event Information
79
3
"Guess My Number" with Event Listeners
82
3
Event Adapters
85
6
Inner Classes
86
1
Adapters and Inner Classes by Example
86
1
Anonymous Inner Classes
87
1
Adapter Classes
88
1
"Guess My Number" with Event Adapters
88
3
Event Model Comparison
91
1
Summary
91
2
Chapter 4 Layout Management
93
44
Layout Manager Basics
93
3
Setting the Layout Manager
94
1
Adding Components to a Layout Manager
94
1
Keyboard Navigation
95
1
Problems with Layout Managers
96
5
Layout Managers Have No Style
96
3
Layout Managers Create Complexity
99
2
Bypassing Layout Managers
101
1
A Tour of the AFC Layout Managers
101
1
Layout Manager Base Classes
101
2
Flow Layouts
103
4
Using Flow Layouts
103
2
Defining Alignment
105
1
Defining Spacing between Components
106
1
Flow Layout Example
106
1
Fixed Flow Layouts
107
3
Using Fixed Flow Layouts
108
1
Defining Alignment
109
1
Defining Spacing between Components
109
1
Fixed Flow Layout Example
110
1
Vertical Flow Layouts
110
5
Using Vertical Flow Layouts
112
1
Applying Styles
113
1
Vertical Flow Layout Example
114
1
Border Layouts
115
4
Using Border Layouts
117
1
Adding Components
117
1
Defining Spacing between Components
118
1
Border Layout Example
118
1
Grid Layouts
119
2
Using Grid Layouts
119
1
Grid Layout Example
120
1
Grid Bag Layouts
121
2
Other Layout Managers
123
1
Writing Your Own Layout Manager
124
12
Understanding Side Layout
125
1
Understanding Side Constraints
126
3
Creating a Side Layout
129
1
Performing the Layout
130
1
Calculating Sizes
131
1
Implementing Keyboard Navigation
132
1
Using Side Layouts
133
2
Pros and Cons of Side Layouts
135
1
Style Guidelines
136
1
Chapter 5 Menus
137
24
Menu Bars
138
12
Creating a Menu Bar
139
3
Basic Menu Bar Example
142
1
Adding and Removing Components
143
3
Launching Menus
146
1
Cascading Menus
146
1
Menu Events
147
1
Enabling and Disabling Items
147
1
Full-Featured Menu Bar Example
148
2
Context Menus
150
9
Creating a Context Menu
151
3
Adding and Removing Items
154
1
Context Menu Events
155
1
Full-Featured Context Menu Example
156
3
Style Guidelines
159
2
Chapter 6 Dialogs
161
50
Basic Dialogs
161
9
Dialog Creation
162
3
Modal and Modeless Dialogs
165
1
Dialog Placement and Display
165
1
Dialog Management
166
1
Dialog Example
167
3
Message Boxes
170
8
Creating Message Boxes
174
1
Message Box Interaction
175
1
Message Box Example
176
2
Property Dialogs
178
9
Creating Property Dialogs
178
2
Adding Pages to a Property Dialog
180
3
Handling Property Page Events
183
1
Property Dialog Example
183
4
Wizards
187
9
Creating and Sizing a Wizard
190
1
Adding Steps to a Wizard
190
1
Displaying a Wizard
190
1
Wizard Example
191
4
Wizard Step Validation
195
1
Find and Replace Dialog Example
196
6
Creating Find and Replace Dialogs
198
1
Interaction with Find and Replace Dialogs
199
1
Find and Replace Dialog Example
199
3
Font Dialogs
202
4
Creating a Font Dialog
202
1
Font Dialog Example
203
3
Color Dialogs
206
4
Creating a Color Dialog
206
1
Color Dialog Example
207
3
Style Guidelines
210
1
Chapter 7 Static, Text, and Status Controls
211
30
Static Controls
212
2
Alignment and Style Options
212
2
Graphic Controls
214
4
Creating Graphic Controls
216
1
Graphic Styles
216
1
Graphic Example
216
2
Text Controls
218
3
Creating a Text Control
218
2
Setting and Getting Text Values
220
1
Text Styles
220
1
Text Example
220
1
Item Controls
221
12
Creating Items
222
2
Setting the Text and Image
224
1
Alignment and Style
224
1
Item Example
225
1
Draw Text Controls
226
4
Constructing a Draw Text Control
230
1
Setting and Modifying the Text
231
1
Draw Text Example
231
1
When to Use Draw Text
232
1
Text Selections
232
1
Text Format Options
232
1
Status Controls
233
3
Constructing a Status Control
234
1
Status Example
235
1
Progress Controls
236
4
Constructing a Progress Control
238
1
Setting the Position and Range
238
1
Progress Example
238
2
Style Guidelines
240
1
Chapter 8 Buttons and Choices
241
34
Push Buttons
242
6
Constructing a Push Button
242
3
Push Button Events
245
1
Push Button Styles
245
3
Repeat Buttons
248
3
Constructing a Repeat Button
248
1
Repeat Buttons by Example
249
2
Repeat Button Events
251
1
Check Buttons
251
5
Constructing a Check Button
252
2
Check Button Example
254
1
Check Button States
255
1
Check Button Events
256
1
Radio Buttons
256
4
Constructing a Radio Button
258
1
Radio Button States
259
1
Radio Button Events
260
1
Choices
260
10
Constructing a Choice
264
1
Adding Items to a Choice
264
1
Selecting an Item in a Choice
265
1
Getting the Selected Item
266
1
Basic Choice Features by Example
266
2
Choice Events
268
1
Adding Custom Choices
268
2
Edit Choices
270
3
Constructing an Edit Choice
270
1
Adding Items
270
2
Edit Choice Example
272
1
Getting and Setting the Current Value
272
1
Edit Choice Events
273
1
Style Guidelines
273
2
Chapter 9 Editable Text
275
24
Edit Controls
276
16
Constructing an Edit Control
276
5
Getting and Setting the Current Value
281
1
Appending and Inserting Text
281
1
Removing and Clearing Text
281
1
Basic Editing Example
282
2
Selecting Text
284
1
Scrolling
285
1
Edit Events
285
1
Edit Features by Example
285
3
Restricting What the User Can Type In
288
1
Password Entry
289
1
More Edit Features by Example
289
3
Spinner Edits
292
4
Constructing a Spinner Edit
292
2
Spinner Information and State
294
1
Spinner Edit Example
295
1
Style Guidelines
296
3
Chapter 10 Bands and Groups
299
24
Bands
299
6
Constructing a Band
303
1
Band Styles
303
1
Band Events
304
1
Adding and Removing Items
304
1
Band Boxes
305
5
User Interaction
308
1
Creating a Band Box
309
1
Groups
310
3
Constructing a Group
310
1
Adding and Removing Group Items
311
1
Basic Group Example
312
1
Check Groups
313
4
Constructing a Check Group
315
1
Adding Items
315
1
Check Group Events
316
1
Radio Groups
317
3
Constructing a Radio Group
317
1
Adding Items
318
2
Radio Group Events
320
1
Style Guidelines
320
3
Chapter 11 Tab and Split Viewers
323
24
Tab Viewers
324
8
Constructing a Tab Viewer
324
1
Adding Pages
324
3
Creating Pages
327
3
Adding and Removing Pages
330
1
Handling Events
331
1
Tabs
332
1
Tab Lists
332
4
Creating a Tab List
333
3
Tab List Events
336
1
Split Viewers
336
9
Creating a Split Viewer
339
2
Split Viewers by Example
341
4
Style Guidelines
345
2
Chapter 12 Sliders, Spinners, and Scrolling
347
44
UIScroll: Basic Scrolling Capabilities
347
11
Constructing a Scroll Control
348
5
Scroll Styles
353
3
Minimum and Maximum Values
356
1
Getting and Setting the Scroll Position
357
1
Scroll Events
357
1
Scroll Bars
358
9
Constructing a Scroll Bar
359
3
Scroll Bar Styles
362
2
Minimum and Maximum Values
364
1
Getting and Setting the Scroll Position
365
1
Scroll Bar Events
366
1
Sliders
367
7
Constructing a Slider
367
3
Slider Styles
370
2
Slider Events
372
2
Spinners
374
6
Constructing a Spinner
374
3
Spinner Styles
377
2
Minimum and Maximum Values
379
1
Spinner Events
380
1
Scroll Viewers
380
9
Constructing a Scroll Viewer
381
5
Scroll Viewer Contents
386
1
Scroll Viewer Styles
387
1
Keyboard Navigation
387
2
Style Guidelines
389
2
Chapter 13 Lists and Column Viewers
391
40
Lists
391
19
Creating a List
393
1
Complete List Example
394
3
Adding Items to a List
397
1
Removing Items from a List
398
1
Determining Selected Items in a List
399
1
Multicolumn Lists
400
3
Replacing Items in a List
403
1
Finding Items in a List
404
1
Another List Example
405
3
Selecting List Items
408
1
Scrolling a List
409
1
List Events
409
1
Column Viewers
410
19
Constructing a Column Viewer
413
1
Complete Column Viewer Example
413
4
Adding Rows to a Column Viewer
417
2
Removing Rows from a Column Viewer
419
1
Determining Selections in a Column Viewer
420
1
Advanced Column Viewer Example
421
4
Adding Custom Rows
425
2
Sorting Rows
427
1
Column Viewer Events
428
1
Style Guidelines
429
2
Chapter 14 Trees
431
26
Tree Fundamentals
432
14
Creating a Tree
436
1
Adding and Removing Items
437
2
Adding Other Components
439
2
Tree Events
441
1
Determining What Is Selected
442
1
Setting Selections
443
3
Additional Tree Concepts
446
8
Walking the Tree
446
1
Walking the Tree by Example
447
3
Dealing with Data Models
450
4
Style Guidelines
454
3
Part II 2D Graphics Classes
457
84
Chapter 15 Drawing
459
28
Drawing Basics
460
4
Understanding paint()
460
1
Understanding update()
461
1
Repainting
461
2
Coordinate Systems
463
1
The Toolkit Class
464
1
FxGraphics
464
21
Drawing Points and Lines
472
1
Drawing Points and Lines by Example
473
2
Drawing Arcs, Ovals, Rectangles, and Polygons
475
1
Drawing Curves
476
2
Drawing Text
478
2
Drawing Images
480
2
Clipping
482
3
Shape Classes
485
1
Summary
486
1
Chapter 16 Color, Pens, and Textures
487
26
Color
488
6
Working with Color
491
1
Color by Example
492
2
Pens and Fills
494
10
Understanding FxFill
494
1
Understanding FxPen
494
1
Creating a Pen
495
1
Using FxPen
496
1
FxPen by Example
496
1
Using Brush Pens
497
1
FxBrushPen by Example
498
1
Using Styled Pens
499
1
Creating a Styled Pen
499
1
FxStyledPen by Example
499
2
Using Rubber Pens
501
1
FxRubberPen by Example
501
3
Textures
504
6
Using Textures
504
5
Textured Drawing
509
1
Summary
510
3
Chapter 17 Fonts and Text
513
28
Font Basics
513
7
FxFont
514
1
Constructing a Font Object
514
1
Font Styles and Flags
514
3
Font Styles by Example
517
1
Font Names
518
2
Native Fonts
520
1
Outline Fonts
521
4
FxOutlineFont by Example
523
2
Font Metrics
525
5
Finding the Width and Height
528
1
Character and Line Metrics
528
1
Font Metrics by Example
528
2
Creating Your Own Font
530
1
Formatted Text
531
7
FxText
531
2
FxFormattedText
533
4
Formatted Text by Example
537
1
Summary
538
3
Part III Distribution
541
22
Chapter 18 Distributing AFC Applets and Applications
543
20
Distributing AFC Applications
543
3
Building a Windows Executable
544
1
Applications on Non-Windows Platforms
545
1
Distributing AFC Applets
546
16
Some History
546
4
Supporting Navigator and Internet Explorer under Windows
550
1
Creating a JAR File
551
2
Using JAR Files
553
1
Creating a CAB File
554
3
Using CAB Files
557
1
Signed Applets
557
2
Creating a Signed CAB File
559
1
Signing a CAB File with a Test Certificate
560
1
Auto-Installing an Applet on a Client
560
1
AFC Applets on Non-Windows Platforms
561
1
Summary
562
1
Index
563