$ 44.99 USA/$64.95 Canada. ISBN 0-07-211863-6
Table of Contents
ACKNOWLEDGEMENTS
INTRODUCTION
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
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
Interfaces
Interface Overview
Using the Implement Interface 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
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
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
BorderLayout
CardLayout
FlowLayout
GridLayout
GridBagLayout
Additional Layout Managers
XYLayout
PaneLayout
VerticalFlowLayout
Advanced Layout Concepts
Multiple Layouts with Nested Containers
Adding Components to a Container at Runtime
Converting Between Layouts
Sample: Creating a Complex Interface
JDeveloper as an Applet Development Tool
The Parts of an Applet
The Applet Class
The HTML <APPLET> Tag
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
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
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
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
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
Deadlocks
Managing Threads
Starting and Stopping Threads
Controlling Thread Priorities
Daemon Threads
The Timer Class
Sample Timer Project
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
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
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
Customizers
Installing JavaBeans Components
Modifying Pages of the Component Palette
Installing Beans from Archives
Installing Beans from Class Files
Converting Applets into JavaBeans
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
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
Integral Primitive Types
Floating Point Primitive Types
The Boolean Primitive Type
Reference Types
Operators
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
Literals
Integer Literals
Floating Point Literals
String Literals
Boolean Literals
Null Constant
Assignment
Simple Assignment Operator
Complex Assignment Operators
Order of Evaluation
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
Comments
Single-Line Comments
Multiline Comments
Documentation Comments
The
Oracle JDeveloper Book Web Site
Last updated 6/30/98
Return
to Oracle JDeveloper Homepage
JDSI HOME