public FishTankMIDlet()
{
canvas = new FishTankCanvas(this);
}
public void startApp()
{
Display.getDisplay(this).setCurrent(canvas);
canvas.start();
}
public void pauseApp()
{
canvas.stop();
}
public void destroyApp(boolean unconditional)
{
canvas.stop();
}
/*
* On the exit command, cleanup and notify that the MIDlet has been
* destroyed.
*/
void exitRequested()
{
destroyApp(false);
notifyDestroyed();
}
}