This page is shown below:
- The first line prompts you to enter a name for your generator. By default, the
class name you entered appears there.
- The next line offers you the option of entering the number of events. Enter an
integer, or click on the check box to indicate that the number of events is not known.
- The next line asks whether you want a simple EventData class. EventData is an
interface, and you must return an implementation of that interface (i.e., an instance of a
class that implements the interface) from the generateEvent() method. By selecting
this option, you can have the wizard define for you a simple class you can use as
EventData; it saves you from having to define your own EventData class. It will
create a class called SimpleEventData that handles one type of data which you can select
from the combo box. When this option is selected, a text field enables which allows
you to enter the fields you wish to have for each event. Enter words separated by
spaces. If you supply the wizard with the names of the fields, the wizard will set
up a Hashtable
for you so that you do not have to concern yourself with how fields are referenced.
If you do not supply any field names but you do select the simple event data class option,
the wizard will create the Hashtable, but it will be empty and you will have to set it up
yourself.
- The next line prompts you for the histograms you wish to generate. Enter legal java identifiers
separated by spaces. The wizard will notify you if anything you enter is not a legal
identifier.
A button at the bottom allows you to preview what you have asked the wizard to create.
Click on 'Finish' when all of the setup is complete. When you click on 'Finish',
the wizard will offer to save the file. It is a good idea to save it now because you
cannot compile it until it is saved, and Java language rules
require that the file name be the same as the class name if the class is public, and the
class must be public in order to be readable from the application.
Return to tutorial.
Page maintained by Jonas Gifford.
Last updated 01/14/04.