home *** CD-ROM | disk | FTP | other *** search
- ===========================================================================
-
- VisualAge for Java
- Version 1.0
-
- Examples
-
- RELEASE NOTES
-
- ===========================================================================
-
- Table of Contents
-
- 1.0 Introduction
- 2.0 Loading Projects
- 3.0 Visual Composition Editor Examples
- 3.1 Running the Visual Composition Editor Examples
- 3.2 Known problems with the Visual Composition Editor Examples
- 3.2.1 COM.ibm.ivj.examples.vc.beandemo
-
- 4.0 Getting Started Examples
- 5.0 Towers of Hanoi
- 6.0 Sun BDK Examples
- 6.1 Adding Sun BDK Beans to the Visual Composition
- Editor Pallet
- 6.2 Known Problems with the Sun BDK Examples
- 6.2.1 BeanBox Source Code Modifications
- 6.2.2 Adding Beans to Sun's BeanBox Demo
- 6.2.3 BridgeTester Bean
-
- 7.0 Sun JDK Examples
- 7.1 Running the Sun JDK Examples
- 7.2 Known Problems with the Sun JDK Examples
- 7.2.1 Sun JDK Animator
- 7.2.2 Sun JDK Clock
- 7.2.3 Sun JDK DrawTest
- 7.2.4 Sun JDK SymbolTest
-
- 8.0 Awt Examples
- 8.1 Running the Awt Examples
-
-
- 1.0 Introduction
-
- IBM VisualAge for Java 1.0 ships with example applications
- and applets to help you start exploring VisualAge.
-
- The examples fall into six categories:
-
- Visual Composition Editor Examples
- Getting Started Examples
- Towers of Hanoi
- Sun BDK Examples
- Sun JDK Examples
- Awt Examples
-
- Each of the example categories will be covered in the
- following sections.
-
-
- 2.0 Loading Projects
-
- The examples are contained in various projects. These
- projects are stored in the repository and must be loaded
- into your image before you can use them.
-
- Use the following steps to load a project from the repository
- into your image:
-
- 1) Select a Workbench.
- 2) Select the "Projects" tab.
- 3) Press the "Add Projects" button on the tool bar. This
- is the button with a picture of a file folder on it.
- 4) Click the "Add project(s) from the repository" radio
- button.
- 5) Press the "Browse" button. This will display all the
- projects in the repository.
- 6) Select the project you want to load from the "Available
- project names" pane.
- 7) Select the edition you want to load from the "Editions"
- pane.
- 8) Press the ">>" button to move the project edition over
- to the "Editions to Add" pane.
- 9) Repeat steps 5 through 7 for each project you want to
- load.
- 10) Press the "OK" button when you have selected all the
- projects you wish to load.
- 11) Press the "Finish" button on the SmartGuide. The
- project(s)will be added to your image.
-
- For detailed explanations of the repository, the image and
- how to manipulate projects please consult the printed or
- on-line documentation.
-
-
- 3.0 Visual Composition Editor Examples
-
- The Visual Composition Editor Examples are contained
- in the IBM Java Examples project. The examples show
- complete working applets and applications constructed
- using the Visual Composition Editor.
-
- If the IBM Java Examples project is not visible in the
- "Projects" tab of your Workbench you must load the project
- from the repository using the steps described in section
- 2.0 of this release note.
-
- Each Visual Composition Editor Example is contained in
- its own package in the IBM Java Examples project. Not
- all the packages in the IBM Java Examples project are
- Visual Composition Editor examples. These other packages
- will be covered later in this release note.
-
- The Visual Composition Editor Example packages are:
-
- COM.ibm.ivj.examples.vc.beandemo
- COM.ibm.ivj.examples.vc.bookmarklist
- COM.ibm.ivj.examples.vc.common
- COM.ibm.ivj.examples.vc.customerinfo
- COM.ibm.ivj.examples.vc.layoutmanagers
- COM.ibm.ivj.examples.vc.mortgageamortizer
- COM.ibm.ivj.examples.vc.popupmenu
-
-
- 3.1 Running the Visual Composition Editor Examples
-
- Each package comment describes what the example does and also
- describes the steps to run the example. To view a package
- comment follow the following steps:
-
- 1) Select a Workbench.
- 2) Select the "Projects" tab.
- 3) Select a project. The text pane in the Workbench will
- display the project comment.
- 4) If the project is collapsed expand it by double
- clicking the project name.
- 5) Select a package. the text pane in the Workbench will
- display the package comment.
-
-
- 3.2 Known problems with the Visual Composition Editor Examples
-
-
- 3.2.1 COM.ibm.ivj.examples.vc.beandemo
-
- This example uses beans contained in the Sun BDK Examples
- project. This means that you have to load the project
- Sun BDK Examples before you can run this example.
-
- You can load the Sun BDK Examples project before, at the
- same time or after you load the IBM Java Examples project.
-
- If you loaded the IBM Java Examples project before loading
- the Sun BDK Examples project you would have noticed several
- compile errors that would show up in the "Unresolved Problems"
- tab of the Workbench. When you load the Sun JDK Examples
- these errors are automatically corrected.
-
-
- 4.0 Getting Started Examples
-
- The Getting Started Examples are meant to be used hand in
- hand with either the printed or on-line version of the
- IBM VisualAge For Java Getting Started book.
-
- The Getting Started Examples are contained in the IBM Java
- Examples project in the packages:
-
- COM.ibm.ivj.examples.vc.todofile
- COM.ibm.ivj.examples.vc.todolist
-
- For instructions on how to load and work with these examples
- please see the IBM VisualAge for Java Getting Started book.
-
-
- 5.0 Towers of Hanoi
-
- The Towers of Hanoi example shows both a graphical applet and
- a textual application that recursively solves the classic
- Towers of Hanoi puzzle.
-
- The Towers of Hanoi example is contained in the IBM Java
- Examples project. For instructions on how to load this
- project see section 2.0 of this release note.
-
- The Towers of Hanoi example is contained in the package:
-
- COM.ibm.ivj.examples.hanoi.
-
- The package comments describe how to run the example. For
- instructions on viewing package comments please see section
- 3.1 of this release note.
-
-
- 6.0 Sun BDK Examples
-
- The Sun BDK Examples are examples that Javasoft ships with
- their Sun BDK 1.0 April '97.
-
- To load the Sun BDK Examples project follow the steps in
- section 2.0 of this release note.
-
- The Sun BDK Examples contain beans that you use in the
- Visual Composition Editor to build applets, applications and
- beans of your own.
-
- For complete instructions on what each Sun BDK bean does
- please see the Sun BDK 1.0 April '97 documentation available
- on Javasoft's web page:
-
- http://splash.javasoft.com/beans/index.html
-
-
- 6.1 Adding Sun BDK Beans to the
- Visual Composition Editor Pallet
-
- Before you can use imported beans in the Visual Composition
- Editor the beans must be added to the pallet. Adding beans
- to the pallet is covered in detail in the IBM VisualAge for
- Java documentation.
-
-
- 6.2 Known Problems with the Sun BDK Examples
-
-
- 6.2.1 BeanBox Source Code Modifications
-
- Since IBM VisualAge for Java does not support dynamic
- class loading two small changes where made to the Sun's
- BeanBox source code to make the BeanBox run.
-
- SimpleClassLoader>>findClass (...)
- Instead of loading the class dynamically the class is
- simply found "in the workspace" based on its name.
-
- SimpleClassLoader>>applyDefinition (...)
- Instead of loading the class dynamically the class is
- simply found "in the workspace" based on its name.
-
-
- 6.2.2 Adding Beans to Sun's BeanBox Demo
-
- If you want to add beans to the Sun BeanBox you must copy
- the *.jar files for the beans to the directory:
-
- \<ibmvjava>\ide\project_resources\jars
-
- Where <ibmvjava> is the directory where you installed
- IBM VisualAge for Java.
-
- You must also import the *.jar files into IBM VisualAge
- for Java before trying to run the new beans from the
- Sun BeanBox. Detailed instructions for importing *.jar
- can be found in the IBM VisualAge for Java documentation.
-
-
- 6.2.3 BridgeTester Bean
-
- We do not ship the BridgeTester Bean that ships with Sun BDK 1.0.
- This bean exposes a bug in Sun's java.beans package.
-
-
- 7.0 Sun JDK Examples
-
- The Sun JDK Examples are examples that Sun ships with
- their Sun JDK 1.1.1.
-
- Each Sun JDK Example is contained in its own project. You
- can use the steps in section 2.0 of this release note to load
- the examples you are interested in.
-
- For detailed instructions on what each example does please
- see the Sun JDK 1.1.1 documentation available on their web
- page.
-
- The following Sun JDK example projects in the VisualAge
- repository:
-
- Sun JDK Animator
- Sun JDK ArcTest
- Sun JDK Blink
- Sun JDK CardTest
- Sun JDK Clock
- Sun JDK DitherTest
- Sun JDK DrawTest
- Sun JDK Fractal
- Sun JDK Gauge
- Sun JDK GraphicsTest
- Sun JDK GraphLayout
- Sun JDK i18n code
- Sun JDK ImageMap
- Sun JDK JumpingBox
- Sun JDK MoleculeViewer
- Sun JDK NervousText
- Sun JDK OpenlookButtons
- Sun JDK RoundButtons
- Sun JDK SimpleGraph
- Sun JDK SortDemo
- Sun JDK Spinner
- Sun JDK SpreadSheet
- Sun JDK SymbolTest
- Sun JDK TicTacToe
- Sun JDK WireFrame
-
-
- 7.1 Running the Sun JDK Examples
-
- Once a Sun JDK Example project is loaded you can run the
- applet using the following steps:
-
- 1) Open a Workbench.
- 2) Select the "Projects" tab.
- 3) Select the example project you wish to run.
- 4) Press the "Run" button on the Workbench toolbar.
- This is the button with the picture of the runner on it.
- 5) Due to the way Sun wrote these examples you may have
- to tell IBM VisualAge for Java if the class is an
- applet or a stand alone application. A dialog may
- appear with the three buttons "Run as Applet",
- "Run main()" and "Cancel". If this dialog appears
- press the "Run as Applet" button. If this dialog does
- not appear then the example will automatically run as
- an applet and you can skip directly to step 6.
- 6) A settings dialog window will open. All the examples
- come with their settings already entered so all you
- have to do is press the "Run" button on the settings
- dialog window and the applet will run.
-
-
- 7.2 Known Problems with the Sun JDK Examples
-
-
- 7.2.1 Sun JDK Animator
-
- If you select the restart option from the applet viewer menu
- while animator is running errors will be displayed on the
- Console. The same behavior is present when this example is
- run under Sun JDK 1.1.1
-
- Due to problems with the way the Animator exaple is written
- you may experience a deadlock condition if you run a large
- number of Animators. The Sun JDK 1.1.1 experiences the
- same problem.
-
-
- 7.2.2 Sun JDK Clock
-
- The graphical time display will show the current system time
- but the textual time may be incorrect.
-
-
- 7.2.3 Sun JDK DrawTest
-
- If you are running IBM VisualAge for Java in Windows 95 or
- Windows NT and are using 256 colors then the fourth radio
- button from the left will not draw with the displayed color.
- This is a known problem that has to do with the way Windows
- allocates colors. The problem does not appear if you a higher
- color resolution or if you are running IBM VisualAge
- for Java under OS/2.
-
-
- 7.2.4 Sun JDK SymbolTest
-
- The symbols will not be displayed. Instead you will see the
- escape codes for the symbols. This is a known problem.
-
-
- 8.0 Awt Examples
-
- The Awt Examples are detailed test cases for the Java
- Awt classes. Basically these examples exercise widgets.
-
- The Awt Examples are contained in the IBM Java Examples project.
- To load this project follow the steps in section 2.0 of this
- release note.
-
- The packages that comprise the Awt tests are:
- COM.ibm.ivj.examples.awttestframework
- COM.ibm.ivj.examples.awttestlauncher
- COM.ibm.ivj.examples.awttests
-
- 8.1 Running the Awt Examples
-
- Follow these steps to run the Awt Examples:
-
- 1) Open a Workbench.
- 2) Select the "Projects" tab.
- 3) Select the IBM Java Examples project.
- 4) Press the "Run" button on the Workbench toolbar. This
- is the button with the picture of the runner on it.
- 5) An information dialog window will open. Press the
- "Run main()" button.
- 6) A "Run Main" dialog window will open. Select the class
- COM.ibm.ivj.examples.awttestlauncher.AwtExampleLauncher
- from the class list. Press the "OK" button.
- 7) A "Command Line Argument" dialog will open.
- The required information has already been entered for
- you so simply press the "Run" button.
- 8) The AwtExampleLauncher will start. Select one or more
- examples from the list and press the "Execute"
- button. The example will run.
-
-