Specifications

Sun Services
Java™ Programming Language
xi
Copyright 2005 Sun Microsystems, Inc. All Rights Reserved. Sun Services, Revision F
File Stream I/O ...................................................................................................................................... 9-20
File Output Example ............................................................................................................................. 9-23
The Collections API .............................................................................................................................. 9-25
A Set Example ...................................................................................................................................... 9-27
A List Example .................................................................................................................................... 9-28
Collections in JDK™ Version 1.1 ........................................................................................................ 9-29
Generics .................................................................................................................................................. 9-30
Generic Collections API ....................................................................................................................... 9-31
Compiler Warnings .............................................................................................................................. 9-32
Iterators ................................................................................................................................................... 9-33
The Iterator Interface Hierarchy ......................................................................................................... 9-34
Enhanced for Loop .............................................................................................................................. 9-35
Building Java GUIs ................................................................................................ 10-1
Objectives ............................................................................................................................................... 10-2
Relevance ................................................................................................................................................ 10-3
Abstract Window Toolkit .................................................................................................................... 10-4
The java.awt Package ......................................................................................................................... 10-5
Containers .............................................................................................................................................. 10-6
Positioning Components ...................................................................................................................... 10-7
Frames ..................................................................................................................................................... 10-8
The FrameExample Class ..................................................................................................................... 10-9
Example Frame .................................................................................................................................... 10-10
Panels .................................................................................................................................................... 10-11
The FrameWithPanel Class ............................................................................................................... 10-12
Layout Managers ................................................................................................................................ 10-15
Default Layout Managers .................................................................................................................. 10-16
A Simple FlowLayout Example ........................................................................................................ 10-17
The FlowLayout Manager ................................................................................................................. 10-20
The FlowExample Class ..................................................................................................................... 10-22