Stage 2

About this task

Add to the ScenarioArea tag as follows:

Procedure

  1. Add a Scenario, and set its label to "Operations1".
  2. In the Scenario, add a ButtonRow.
  3. In the ButtonRow, add a TaskLauncherButton, and set its taskName to "TX01", its label to "Withdrawal", its toolTipText to "Withdrawal", its width to 150, its mnemonic to "W", its onClick to "this.setForeground(new java.awt.Color(255,255,255))", and its shortDescription to "Withdrawal1" [the last character is the number 1].
  4. In the Scenario, add a MenuButtonRow.
  5. In the MenuButtonRow, add a MenuButton, and set its toolTipText to "Operations" and its iconName to "/images/commercial_card.gif".
  6. In the MenuButton, add a MenuItem, and set its taskName to "TX01", its toolTipText to "Withdrawal", its mnemonic to "I", its label to "Withdrawal", and its shortDescription to "Withdrawal2".
  7. In the MenuButton, add a Separator.
  8. In the MenuButton, add a MenuItem, and set its taskName to "OP", its toolTipText to "Operation", its mnemonic to "P", its longDescription to "Operation", its label to "Operation", its operation to "op", and its shortDescription to "Operation".
  9. Add a Scenario, and set its label to "Nothing".

Results

The following shows the XML file at the end of Stage 2:

<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE Desktop SYSTEM "desktop.dtd">
<Desktop width="977" height="630" initializerClass="labs.CBTFInitializer" 
    initializerMethod="initEnv" title="Sample Desktop">
<ScenarioArea> 
<Scenario label="Operations1">
<ButtonRow>
<TaskLauncherButton label="Withdrawal" taskName="TX01" width="150" 
    toolTipText="Cash Withdrawal" mnemonic="W" 
    onClick="this.setForeground(new java.awt.Color(255,255,255))" 
    shortDescription="Withdrawal1"/>
</ButtonRow>
<MenuButtonRow>
<MenuButton toolTipText="Operations" iconName="/images/commercial_card.gif" >
<MenuItem taskName="TX01" toolTipText="Withdrawal" mnemonic="I" 
label="Withdrawal" shortDescription="Withdrawal2" /> 
<Separator/>
<MenuItem taskName="OP" toolTipText="Operation" mnemonic="P" 
    longDescription="Operation" label=
"Operation" operation="op" shortDescription="Operation" /> 
</MenuButton>
</Scenario>

<Scenario label="Nothing">
</Scenario>

</ScenarioArea>
<CustomizableArea name="CA1" width="297" >
</CustomizableArea>
<CustomizableArea name="CA2" width="80" >
</CustomizableArea>
<CustomizableArea name="CA3" width="247" height="457" >
</CustomizableArea>
<WorkingArea iconName="/images/background.gif" defaultIcon="/images/logo.gif" />
<CustomizableArea name="CA4" width="489" height="30" >
</CustomizableArea>
<TaskArea maxNumberOfTasks="6" />
<TaskInfo taskName="TX01" shortDescription="Withdrawal" 
	longDescription="Withdrawal Operation" code="WITH" />
</Desktop>