List of Tables, Code Examples, and Figures

   

Core Java™ 2: Volume I - Fundamentals
By Cay S. Horstmann, Gary Cornell
Table of Contents


Tables

1-1: The Growth of the Java Standard Edition API

2-1: Java directory tree

3-1: Java integer types

3-2: Floating-point types

3-3: Special characters

3-4: Operator precedence

3-5: Growth of an investment at different interest rates

4-1: UML notation for class relationships

7-1: Standard colors

7-2: System colors

8-1: Event handling summary

8-2: Sample cursor shapes

8-3: Predefined action table names

8-4: Input map conditions

9-1: The accessor methods of the ButtonModel interface

9-2: MaskFormatter symbols

9-3: Adding a Spring to an Overconstrained Component

10-1: Applet positioning attributes

10-2: showDocument arguments

10-3: jar program options

11-1: Timing data

11-2: File handler configuration parameters

11-3: Log file pattern variables

11-4: HPROF options

11-5: Debugging commands

12-1: Basic character encodings (in rt.jar)

12-2: Extended Character Encodings (in i18n.jar)

12-3: Required character encodings

12-4: Regular expression syntax

12-5: Predefined character class names

Code Examples

2-1: Welcome.java

2-2: ImageViewer.java

2-3: WelcomeApplet.html

2-4: WelcomeApplet.java

3-1: FirstSample.java

3-2: InputTest.java

3-3: Retirement.java

3-4: Retirement2.java

3-5: LotteryOdds.java

3-6: BigIntegerTest.java

3-7: LotteryDrawing.java

3-8: CompoundInterest.java

3-9: LotteryArray.java

4-1: CalendarTest.java

4-2: EmployeeTest.java

4-3: StaticTest.java

4-4: ParamTest.java

4-5: ConstructorTest.java

4-6: PackageTest.java

4-7: Employee.java

5-1: ManagerTest.java

5-2: PersonTest.java

5-3: EqualsTest.java

5-4: ArrayListTest.java

5-5: ReflectionTest.java

5-6: ObjectAnalyzerTest.java

5-7: ArrayGrowTest.java

5-8: MethodPointerTest.java

6-1: EmployeeSortTest.java

6-2: TimerTest.java

6-3: CloneTest.java

6-4: InnerClassTest.java

6-5: AnonymousInnerClassTest.java

6-6: StaticInnerClassTest.java

6-7: ProxyTest.java

7-1: SimpleFrameTest.java

7-2: CenteredFrameTest.java

7-3: NotHelloWorld.java

7-4: DrawTest.java

7-5: FillTest.java

7-6: FontTest.java

7-7: ImageTest.java

8-1: ButtonTest.java

8-2: PlafTest.java

8-3: Sketch.java

8-4: MouseTest.java

8-5: ActionTest.java

8-6: MulticastTest.java

8-7: CustomEventTest.java

9-1: Calculator.java

9-2: TextTest.java

9-3: FormatTest.java

9-4: TextAreaTest.java

9-5: TextEditTest.java

9-6: CheckBoxTest.java

9-7: RadioButtonTest.java

9-8: BorderTest.java

9-9: ComboBoxTest.java

9-10: SliderTest.java

9-11: SpinnerTest.java

9-12: MenuTest.java

9-13: ToolBarTest.java

9-14: BoxLayoutTest.java

9-15: FontDialog.java

9-16: SpringLayoutTest.java

9-17: CircleLayoutTest.java

9-18: OptionDialogTest.java

9-19: DialogTest.java

9-20: DataExchangeTest.java

9-21: FileChooserTest.java

9-22: ColorChooserTest.java

10-1: NotHelloWorldApplet.java

10-2: Calculator.html

10-3: CalculatorApplet.java

10-4: PopupCalculatorApplet.java

10-5: Chart.java

10-6: Bookmark.html

10-7: Left.html

10-8: Right.html

10-9: Bookmark.java

10-10: AppletFrame.java

10-11: CalculatorAppletApplication.java

10-12: ResourceTest.java

10-13: WebStartCalculator.java

10-14: CustomWorld.java

10-15: SystemInfo.java

10-16: PreferencesTest.java

11-1: StackTraceTest.java

11-2: ExceptTest.java

11-3: ExceptionalTest.java

11-4: LoggingImageViewer.java

11-5: ConsoleWindow.java

11-6: EventTracer.java

11-7: EventTracerTest.java

11-8: RobotTest.java

11-9: WordCount.java

11-10: BuggyButtonTest.java

11-11: BuggyButtonFrame.java

11-12: BuggyButtonPanel.java

12-1: ZipTest.java

12-2: DataFileTest.java

12-3: RandomFileTest.java

12-4: ObjectFileTest.java

12-5: ObjectRefTest.java

12-6: SerialCloneTest.java

12-7: FindDirectories.java

12-8: CRC.java

12-9: NIOCRC.java

12-10: RegexTest.java

12-11: HrefMatch.java

Figures

1-1: The Jmol applet

2-1: Compiling and running Welcome.java

2-2: Starting Sun ONE Studio

2-3: The edit window of Sun ONE Studio

2-4: The output window of Sun ONE Studio

2-5: Error messages in Sun ONE Studio

2-6: Starting a new program in Sun ONE Studio

2-7: Compiling a program with Emacs

2-8: Running a program from within Emacs

2-9: Locating compilation errors in TextPad

2-10: Running a Java program from TextPad

2-11: Running the ImageViewer application

2-12: The WelcomeApplet applet as viewed by the applet viewer

2-13: Running the WelcomeApplet applet in a browser

3-1: Legal conversions between numeric types

3-2: The three panes of the API documentation

3-3: Class description for the String class

3-4: Method summary of the String class

3-5: Detailed description of a String method

3-6: An input dialog

3-7: Flowchart for the if statement

3-8: Flowchart for the if/else statement

3-9: Flowchart for the if/else if (multiple branches)

3-10: Flowchart for the while statement

3-11: Flowchart for the do/while statement

3-12: Flowchart for the for statement

3-13: Flowchart for the switch statement

3-14: Copying an array variable

3-15: Copying values between arrays

3-16: A two-dimensional array

4-1: A class diagram

4-2: Procedural vs. OO programming

4-3: Creating a new object

4-4: Object variables that refer to the same object

4-5: Returning a reference to a mutable data field

4-6: Modifying a numeric parameter has no lasting effect

4-7: Modifying an object parameter has a lasting effect

4-8: Swapping object parameters has no lasting effect

4-9: Changing the warning string in an applet window

5-1: Employee inheritance hierarchy

5-2: Inheritance diagram for Person and its subclasses

6-1: Copying and cloning

6-2: A shallow copy

6-3: An inner class object has a reference to an outer class object

7-1: The Windows look and feel of Swing

7-2: The Motif look and feel of Swing

7-3: The Metal look and feel of Swing

7-4: The simplest visible frame

7-5: Inheritance hierarchy for the JFrame and JPanel classes

7-6: A simple graphical program

7-7: The internal structure of a JFrame

7-8: 2D rectangle classes

7-9: The bounding rectangle of an ellipse

7-10: Relationships between the shape classes

7-11: Rectangles and ellipses

7-12: Filled rectangles and ellipses

7-13: Typesetting terms illustrated

7-14: Drawing the baseline and string bounds

7-15: Window with tiled graphics image

8-1: Event notification

8-2: A panel filled with buttons

8-3: Switching the Look and Feel

8-4: A window listener

8-5: Inheritance diagram of the AWT event classes

8-6: Relationship between event sources and listeners

8-7: A sketch program

8-8: A mouse test program

8-9: Buttons display the icons from the Action objects

8-10: All frames listen to the Close all command

8-11: Using custom timer events to simulate rainfall

9-1: Model and view of a text field

9-2: Two separate views of the same model

9-3: A window place

9-4: Interactions between model, view, and controller objects

9-5: A panel with three buttons

9-6: A panel with six buttons managed by a flow layout

9-7: Changing the panel size rearranges the buttons automatically

9-8: Border layout

9-9: A single button managed by a border layout

9-10: A panel placed at the south end of the frame

9-11: A calculator

9-12: Text field example

9-13: The FormatTest program

9-14: A text area

9-15: Testing text editing

9-16: Check boxes

9-17: A radio button group

9-18: Testing border types

9-19: A combo box

9-20: Sliders

9-21: Several variations of the JSpinner component

9-22: A menu with a submenu

9-23: Icons in menu items

9-24: A checked menu item and menu items with radio buttons

9-25: A pop-up menu

9-26: Keyboard mnemonics

9-27: Accelerators

9-28: Disabled menu items

9-29: A tool bar

9-30: Dragging the tool bar

9-31: Dragging the tool bar to another border

9-32: Detaching the tool bar

9-33: A tool tip

9-34: Inheritance hierarchy for the Component class

9-35: Box layouts

9-36: Font dialog box

9-37: Dialog box grid used in design

9-38: A spring

9-39: Summing springs

9-40: Equally Spaced Buttons

9-41: Springs and Struts

9-42: Lining up Columns

9-43: Horizontal springs attached to a component

9-44: Circle layout

9-45: Geometric traversal order

9-46: An option dialog

9-47: The OptionDialogTest program

9-48: An About dialog box

9-49: Password dialog box

9-50: File chooser dialog box

9-51: A file dialog with a preview accessory

9-52: The "swatches" pane of a color chooser

9-53: The HSB pane of a color chooser

9-54: The RGB pane of a color chooser

10-1: Applet inheritance hierarchy

10-2: Viewing an applet in the applet viewer

10-3: Viewing an applet in a browser

10-4: A calculator applet

10-5: A pop-up window inside a browser

10-6: Applet alignment

10-7: A chart applet

10-8: A bookmark applet

10-9: The calculator as an application

10-10: The calculator as an applet

10-11: Displaying a resource from a JAR file

10-12: Launching Java Web Start

10-13: The Calculator delivered by Java Web Start

10-14: The Java Web Start Application Manager

10-15: A Java Web Start Security Advisory

10-16: The WebStartCalculator Application

10-17: The customized Hello World program

11-1: Exception hierarchy in Java

11-2: A program that generates exceptions

11-3: A log handler that displays records in a window

11-4: The console window

11-5: The EventTracer class at work

11-6: Breakpoints in the Sun ONE Studio debugger

11-7: Stopping at a Breakpoint

12-1: Input and Output stream hierarchy

12-2: Reader and Writer hierarchy

12-3: A sequence of filtered stream

12-4: The ZipTest program

12-5: Two managers can share a mutual employee

12-6: Here, Harry is saved three times

12-7: An example of object serialization

12-8: Objects saved in random order

12-9: The graphical version of the serialver program

12-10: Reading an object with fewer data fields

12-11: Reading an object with more data fields


       
    Top
     



    Core Java 2(c) Volume I - Fundamentals
    Building on Your AIX Investment: Moving Forward with IBM eServer pSeries in an On Demand World (MaxFacts Guidebook series)
    ISBN: 193164408X
    EAN: 2147483647
    Year: 2003
    Pages: 110
    Authors: Jim Hoskins

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net