The XMOJO Project
<< Prev 2. About the Shopping Cart Application Next >>

 About Shopping Cart 

Shopping Cart is basically an application used for ordering items in a shop. The items  are "Pets".  Four pets, namely Parrot, Dog, Cat, and fish are available in the shop and to place orders for these pets the Shopping Cart application is used.

The Shopping Cart application is built using the below mentioned classes:

ShoppingCartApplication
ShoppingCart
ShoppingItem
Store
StringWrapper
ItemDialog


The Shopping Cart Application bundled with the product is present in<Product_Install_Dir>/tutorials directory.

 Running the Shopping Cart application

The Shopping Cart Application is started by invoking the ShoppingCartApplication class.  On invoking this class, a simple Graphical User Interface pops up, which helps to add an item, update, or delete an item from the cart.


A simple batch / shell file is provided to start the Shopping Cart Application stand-alone.

 For Windows OS 

  1. Change your working directory to %XMOJO_HOME%/tutorials directory.
  2. Execute the run_cart.bat (This batch file executes the ShoppingCartApplication class.)
A simple Graphical User Interface pops up, which helps to add an item, update, or delete an item from the cart.

 For Unix OS 

  1. Change your working directory to $XMOJO_HOME/tutorials directory.
  2. Execute the run_cart.sh (This script file executes the ShoppingCartApplication class.)
A simple Graphical User Interface pops up, which helps to add an item, update, or delete an item from the cart.

<< Prev Home Next >>
A JMX Tutorial
Adding JMX Manageability