Introduction.............................................................................................................................
The JBuilder Companion.................................................................................................
Style and Intended Audience...........................................................................................
Content.......................................................................................................................
The Purpose of the Book.............................................................................................
JBuilder Overview...........................................................................................................
The Myth of the Proprietary Format.............................................................................
Project Management...................................................................................................
A Word about the Editions of JBuilder.........................................................................
About Java......................................................................................................................
The Changing Java Specification..................................................................................
Java Language Lawyers...............................................................................................
This Book and the Java Language................................................................................
JBuilder and Swing......................................................................................................
What Do I Think of Java?............................................................................................
What do I think of Bill and Linus?................................................................................
Contacting Us, The Source Code on the CD....................................................................
I Am Not a Lawyer.........................................................................................................
My – or is it Our -- Writing Style.....................................................................................
1.7 Summary...................................................................................................................
Setup and Configuration......................................................................................................
Overview........................................................................................................................
Install Overview..............................................................................................................
Hardware Requirements..................................................................................................
Installing the JDK............................................................................................................
The JBuilder Install......................................................................................................
Downloading and Installing JBuilder Personal Edition....................................................
Notes on Installing JBuilder for Windows.....................................................................
Notes on Installing JBuilder on Linux............................................................................
The Alternate Install from a Zip File.............................................................................
Checking to Make Sure Basic Applets and Applications Run...........................................
Configuring JBuilder from the Command Line...................................................................
Getting Memory Set up right............................................................................................
Problems with font.properties..........................................................................................
Using Ant........................................................................................................................
CodeBox........................................................................................................................
Summary.........................................................................................................................
Creating a Default Application or Applet..............................................................................
Overview....................................................................................................................
The Steps for Creating a New Project.........................................................................
Optional Step Which Will Facilitate Javadoc Documentation........................................
Creating a New Application.........................................................................................
Creating a New Applet................................................................................................
Viewing Your Applet...................................................................................................
Viewing the Applet Through a Browser........................................................................
Summary.....................................................................................................................
The
AppBrowser: The Core of the IDE...................................................................................
Defining our Terms: The IDE and AppBrowser................................................................
The AppBrowser........................................................................................................
Exploring a Simple Project...............................................................................................
The Message Pane..........................................................................................................
The File View tabs..........................................................................................................
Automation: Creating a Class...........................................................................................
A Glancing Introduction to CodeInsight........................................................................
Summary.........................................................................................................................
Chapter 05..............................................................................................................................
JBuilder Product Overview..................................................................................................
The File Menu.................................................................................................................
The Object Gallery - Personal, SE and Enterprise Versions..........................................
The General Page........................................................................................................
The Project Page.........................................................................................................
The Web Page............................................................................................................
The XML Page...........................................................................................................
The CORBA Page......................................................................................................
The Build Page............................................................................................................
The Enterprise Page....................................................................................................
The "Test" Page...........................................................................................................
The Search Menu............................................................................................................
Find in Path.................................................................................................................
Incremental Search......................................................................................................
Go To Line.................................................................................................................
Find Classes................................................................................................................
The Project Menu...........................................................................................................
Customizing the JBuilder Environment..............................................................................
Tabs and Carriage Returns..........................................................................................
The Run Menu................................................................................................................
The Team Menu..............................................................................................................
The Wizards Menu..........................................................................................................
The Tools Menu..............................................................................................................
Adding a Third Party Tool to the JBuilder Menu System...............................................
The Window Menu.........................................................................................................
The Help Menu...............................................................................................................
The Open Tools API.......................................................................................................
Summary.........................................................................................................................
The UI
Designer..............................................................................................................
Overview........................................................................................................................
A Theory of Interface Design...........................................................................................
UI Designer Basics..........................................................................................................
Dropping Components on the UI designer........................................................................
Viewing the Source JBuilder Generates........................................................................
The Constructor for Frame1........................................................................................
Understanding jbInit....................................................................................................
More on Editing UI Code by Hand..............................................................................
Coming to Terms with processWindowEvent...............................................................
Visual Programming Tricks and Techniques......................................................................
Multi-Selecting Components........................................................................................
Deleting Components..................................................................................................
The Structure Pane Rules!...........................................................................................
The Inspector..................................................................................................................
Creating a Simple Event Handler..................................................................................
Using JTabbedPane.........................................................................................................
Setting your ClassPath Inside the IDE..............................................................................
Summary.........................................................................................................................
Using the
Editor.......................................................................................................................
Key Mapping..................................................................................................................
JBuilder and Macros.......................................................................................................
Code Templates..............................................................................................................
Setting up Tabs...............................................................................................................
Setting up Carriage Returns and Line Feeds.....................................................................
Error Insight................................................................................................................
Letting JBuilder Write Your try..catch Blocks...............................................................
Letting JBuilder Write Your Import Statements................................................................
More on Import Statements.........................................................................................
Optimizing Imports......................................................................................................
CodeInsight.....................................................................................................................
MemberInsight............................................................................................................
ClassInsight.................................................................................................................
ParameterInsight..........................................................................................................
Find Definition.............................................................................................................
Find References..........................................................................................................
Integration with the Structure Pane...................................................................................
Resource Strings.............................................................................................................
Override Methods...........................................................................................................
Implementing Interfaces...................................................................................................
Integration with Emacs or other Editors............................................................................
Using Bookmarks............................................................................................................
Access to Javadoc..........................................................................................................
Viewing Javadoc with the F1 Key................................................................................
Viewing Javadoc with the File View Tabs....................................................................
JavaDoc......................................................................................................................
Viewing Javadoc by Unzipping a Jar File......................................................................
Finding Errors After a Compile....................................................................................
Summary.....................................................................................................................
Java Basics:
Classes and Methods...........................................................................................
The Governing Analogy of the Next Three Chapters.........................................................
Understanding Java Classes.............................................................................................
Basic Class Syntax..........................................................................................................
The Scope of a Class: Default vs. Public..........................................................................
Nested Class: Not Covered in this Chapter..................................................................
Creating and Destroying Classes......................................................................................
Declaring Methods in a Class...........................................................................................
Working with Strings...................................................................................................
Declaring the Type of a Method...................................................................................
Using a Class in an Application........................................................................................
Constructors...................................................................................................................
Public Classes, Your First Package..................................................................................
Inheritance..................................................................................................................
Summary.........................................................................................................................
Java Basics: Types..................................................................................................................
The Basic Java Types......................................................................................................
A Class that Uses All the Types.......................................................................................
Declaring the Simple Types..............................................................................................
Initializing the Simple Types.............................................................................................
Thinking about booleans..................................................................................................
Thinking about chars........................................................................................................
Working with bytes.........................................................................................................
Working with shorts, ints and longs..................................................................................
What Should I Use: A byte, short, int or long?..................................................................
Working with floats and doubles......................................................................................
A Program to Test the MyTypes Class............................................................................
Working with Menus.......................................................................................................
The Code in the CallMyTypes Application.......................................................................
Summary.........................................................................................................................
Statements,
Expressions and Keywords...................................................................................
Statements..........................................................................................................................
Examples of Statements...................................................................................................
Compound Statements....................................................................................................
Expressions.....................................................................................................................
Keywords.......................................................................................................................
Assertions...................................................................................................................
Summary.............................................................................................................................
Looping,
Operators and Currency...........................................................................................
Loops.............................................................................................................................
for Loops........................................................................................................................
while Loops....................................................................................................................
Understanding Math Operators........................................................................................
Example of Using the Math Operators.............................................................................
Multiplication Operators and Integers...........................................................................
Floating Point Operations and Accuracy..........................................................................
Floating Point Types and Money: BigDecimal...............................................................
Review of Promoting and Converting Types.....................................................................
Assignment Operators.....................................................................................................
Summary.........................................................................................................................
Layout
Managers....................................................................................................................
Layout Theory.................................................................................................................
Some Theory on Containers........................................................................................
GridBagLayout vs the World.......................................................................................
A Layout is Just a Class.....................