Oracle JDeveloper

Cary Jensen, Loy Anderson, & Blake Stone

Oracle Press, 1998

$ 44.99 USA/$64.95 Canada. ISBN 0-07-211863-6

Table of Contents



Chapter 1 Overview of Oracle JDeveloper

Overview of Java

Overview of the JDeveloper IDE

The Main Window

The Object Gallery and Wizards

Using the Project Wizard to Create a Simple Project

The AppBrowser

Compiling and Running the Project

Getting Help from JDeveloper's Online Help

Chapter 2 Understanding Objects in JDeveloper

Overview of Objects

The Benefits of Object-Oriented Programming

Objects in JDeveloper

Declaring the Class

Method Declarations

Variable Declarations

Viewing the Class Structure

The Example Frame Class

Importing Packages and Classes

The Frame1 Class

Local Variables

Adding Methods

Using the Class Wizard

Overriding Methods

Using the Override Methods Wizard


Interface Overview

Using the Implement Interface Wizard

Chapter 3 Building a User Interface

Frames Created by the Frame Wizard

Status Bars

Displaying Text in a Status Bar

Customizing Menu Bars

Using the Menu Designer

Menu Item Event Handlers

Popup Menus

Adding a Popup Menu

Displaying a Popup Menu

Popup Menu Event Handlers

Button Bars

Creating Buttons

Button Bar Event Handlers

Manually Placing Button Bars and Status Bars

Chapter 4 Controlling Frames and Dialogs

Using Frames

Adding an Additional Frame to an Existing Application

Controlling a Frame

Creating a Modal Frame

Controlling Child Windows

Using Dialogs

The About Dialog

Dialogs from the Component Palette

Using the Object Gallery Dialogs

Creating Custom Dialogs

Creating a Dialog Snippet

Chapter 5 Visual Design Using Layout Managers

Layouts and Constraints

Selecting a Layout Manager

Placing Components

Changing Component Placement

Editing Constraints

Component Sizing Hints for Layouts

Sample: Creating a Basic Interface

The Standard Java Layout Managers






Additional Layout Managers




Advanced Layout Concepts

Multiple Layouts with Nested Containers

Adding Components to a Container at Runtime

Converting Between Layouts

Sample: Creating a Complex Interface

Chapter 6 Building and Testing Applets

The Purpose of Applets

JDeveloper as an Applet Development Tool

The Parts of an Applet

The Applet Class


The AppBrowser and HTML Files

Running an Applet

The AppletViewer Program

Web Browsers that Support JDeveloper Applets

Applet Parameters

Defining Parameters from HTML

Reading Parameter Values

Describing Parameters

The Applet Wizard

Step 1: The Applet Class

Step 2: The Applet Parameters

Step 3: The HTML Page

A Sample Applet Wizard Applet

Making the Choice: Application or Applet

Applet Security Restrictions

Applet Methods

AppletContext Methods

Hybrid Applets

A Hybrid Applet Framework

Creating Database Applets

Chapter 7 Database Basics

Understanding Databases

Databases and Tables

Creating Tables

Overview of JDBC

JDBC Drivers

Driver Types

The Provide-Resolve Model of Data Access

Using the JDBC API

JDeveloper's Database Components

Data Access Components

Data Aware Components

Data Modules

Preparing JDeveloper for the Database Examples

Creating the Sample Tables

Using the Data Form Wizard

Using the Data Form Wizard

Using the Data Form Generated Frame

Manually Creating a Database Frame

Defining the User Interface

Adding and Configuring the Data Access Components

Connecting Data Aware Components to the Dataset

Chapter 8 Using Database Components

Using a Data Module

Sharing a Data Module

Using Multi-Instance Data Modules

Creating Database Modules

Creating Data Modules that Share a Database

Creating Master-Detail Views

Creating a Single-Frame Master-Detail View

Creating Master-Detail Views with Multiple Frames

Configuring Data Controls

Sorting Data

Using DataSetView Components

Creating Persistent Columns

Using the LocatorControl

Chapter 9 Programming Database Functionality

Saving Data

Detecting Unresolved Rows

Saving and Canceling Changes

Navigating a Dataset

Basic Table Navigation

Editing a Dataset

Customizing Data Views

Switching Between Dataset Views at Runtime

Calculated Fields

Filtering Data

Customizing Queries

Defining Query Strings

Parameterized Queries

Creating Database Applets

Advanced Database Features of JDeveloper

Using JDBC Calls

Using SQLJ

JDeveloper and CORBA

Accessing Stored Procedures Using PL/SQL

Chapter 10 Creating and Using Threads

The Multithreaded Code Trade-Off

Multithreading Benefits

Multithreading Pitfalls

JDeveloper and Multithreaded Development

Multithreaded Development in Java

The Thread Class

Sample Threaded Project

Thread-Safe Development

Synchronized Methods

Synchronized Code Blocks

Performance Considerations


Managing Threads

Starting and Stopping Threads

Controlling Thread Priorities

Daemon Threads

The Timer Class

Sample Timer Project

Chapter 11 Debugging JDeveloper Applications and Applets

Debugging Basics

Runtime and Logic Errors

Preparing for a Debugging Session

Creating a Sample Buggy Application

Starting the Debugger

Debugging Applets

Stopping the Debugger

The Debugging Interface: Debug and Watch Tabs

Following Code Execution

The Execution Point

Controlling Execution

Selectively DisablinMethod Tracing

Threads and Execution Stacks

Using Breakpoints

Examining Data

Examining Local Variables and Parameters

Watching Expressions

Data Inspectors

Viewing Object Fields and Array Elements, and Modifying Data

Evaluating and Modifying Expressions

Fixing the Buggy Sample Application

Defensive Programming: Testing Invariant Conditions

The Exclude Class Compiler Option

Tips for Common Java Problems

Unhandled Exceptions

Finding Logic Errors

Problems in Foundation Technology

Abnormally Terminating a Java Application

Chapter 12 Deploying Java Applications and Applets

Deployment Concepts

Loading Classes: The Class Path

Loading Resources

Distribution Efficiency

Redistribution Licensing

The Deployment Wizard

The Deployment Wizard's Limits

Deploying Applications

Deploying Applets

Single Archive Applets

Multiple Archive Applets

Individual File Applets

Combining Techniques

Advanced Deployment Topics

Database Applications and Applets

Deploying for Java 1.02

Deploying a Database Applet Example

Creating the Applet Archive

Creating the HTML Page

Chapter 13 JavaBeans Basics

The JavaBeans Standard

Component Technology Overview

Component Philosophy

JavaBeans Concepts: Design Patterns

JavaBeans Terminology

The Bean Info Alternative

Using Beans in JDeveloper

Creating Bean Instances

Using Bean Properties

Understanding Bean Events

Advanced Bean Features

Indexed Properties

Bound Properties: Detecting Changes

Constrained PropertiesValidating Changes


Installing JavaBeans Components

Modifying Pages of the Component Palette

Installing Beans from Archives

Installing Beans from Class Files

Converting Applets into JavaBeans

Chapter 14 Writing JavaBeans

Component Writing Philosophy

Ease of Use

Robust Components

Consistency Among Components

Component Writing Overview

Defining the Class

Picking a Parent Class

Defining a Class with JavaBean Snippets

Sample Component Development Using JavaBean Snippets

Testing the Sample Component

Defining Properties

Adding a Property to the Sample Component

Defining Events

Dispatching Action Events from the Sample Component

Defining New Events

Bean Info Classes

Using JavaBean Snippets to Define Bean Info Classes

Defining Bean Info for the Sample Component

Property Editors

Chapter 15 The Model-View Architecture

JBCL Component Philosophy

Separating Models and Views

A Shared Model

Using the Lightweight View Components

JBCL's Four Basic Models

Model Interfaces and Classes

Creating a Custom Model

Learning More About Models

Suppressing Model Change Events

View Managers: Dealing with Disparate Data Types

Life Without View Managers

The TypedViewManager Class

Managing Selection and Subfocus

The JBCL Approach

Subfocus Listeners

Managing the Selection Pool

Selection Listeners

Putting Models to Work: A Java File Browser

Writing a Graph Model

Writing a Matrix Model

Model View in Review

Appendix A Java Types, Operators, Literals, and Assignment

Java Types

Integral Primitive Types

Floating Point Primitive Types

The Boolean Primitive Type

Reference Types


Integer Operators

Integer Numeric Operators

Integer Comparison Operators

The Integer Conditional Operator

Integer Cast Operators

The Integer String Concatenation Operator

Floating Point Operators

Floating Point Numeric Operators

Floating Point Comparison Operators

The Floating Point Conditional Operator

Floating Point Cast Operators

The Floating Point String Concatenation Operator

Boolean Operators

Logical Comparison Operators

The Logical Complement Operator

Logical Operators

The Conditional Logical Operators

The Boolean Conditional Operator

The Boolean String Concatenation Operator

Reference Operators

Reference Field Access Operators

Reference Method Invocation Operators

Reference Cast Operators

The Reference Type Operator

Reference Comparison Operators

The Reference Conditional Operator


Integer Literals

Floating Point Literals

String Literals

Boolean Literals

Null Constant


Simple Assignment Operator

Complex Assignment Operators

Order of Evaluation

Appendix B Java Keywords, Control Structures, and Comments

Overview of Java Keywords

Control Structures

Branching Control Structures

The if Statement

The switch Statement

The try Statement

Looping Control Structures

The for Loop

The while Loop

The do Loop

Using Labeled Statements

Using a Labeled break Statement

Using a Labeled continue Statement


Single-Line Comments

Multiline Comments

Documentation Comments

Appendix C The Code Samples

Installing the Sample Files

The Oracle JDeveloper Book Web Site

Last updated 6/30/98
Return to Oracle JDeveloper Homepage

Copyright Jensen Data Systems, Inc. Last modified 2/28/2001.