|
You may download the Jar (Java ARchive) file containing the runnable code
and use it as part of an application created with the BDK (Bean Development Kit)
downloadable from JavaSoft, or within any other Bean development tool such as
the latest Symantec Visual Cafe. I will assume you are using the BDK for now.
Download the BeanClock.zip file, unzip it to produce a .JAR file and
copy into your /bdk/jars directory along with the supplied examples.
Start up the BeanBox (/bdk/beanbox/run), you should see an entry for
BeanClock in the ToolBox on the lefthand side.
A properties sheet should also appear, allowing
you to change the "customizable properties", such as colours and whether the
Date is shown.
With a button selected, chose Edit/Events/ActionPerformed,
move the mouse over the BeanClock and click again. You will see a list of
"public" methods, including ResumeClock. Select ResumeClock and press OK. Then
link the other button to SuspendClock.
Clicking on these buttons should now interact with the BeanClock to start and stop.
Select File/Save from the BeanBox. This has resulted in each Bean serializing itself,
ie. saving it's properties.
You may then clear the BeanBox and reload the
application you saved. You will see the BeanClock and buttons reload
with your personalised options and actions.
We will be bringing you more "business oriented" JavaBeans as they are produced.
|