final Display display = Display.getDisplay(this);
display.setCurrent(canvas);
// Add close command
_mainExit = new Command("Close", Command.EXIT, 1);
canvas.addCommand(_mainExit);
canvas.setCommandListener(this);
} catch (final IOException ex) {
System.exit(1);
}
}