Constructor.
display = d;
commandListener = cl;
try {
// Load Main Meny Icons.
menuIcons[0] = Image.createImage(UIConstants.IMG_ROOT+UIConstants.EMAIL_IMG);
menuIcons[1] = Image.createImage(UIConstants.IMG_ROOT+UIConstants.CAL_IMG);
menuIcons[2] = Image.createImage(UIConstants.IMG_ROOT+UIConstants.CONTACTS_IMG);
} catch (java.io.IOException ignore) {
// Ignore...
System.out.println(UIConstants.MSG_ERROR_LOADING_IMG);
}
screen = new List(UIConstants.TXT_MAIN_MENU, List.IMPLICIT, menuItems, menuIcons);
screen.addCommand(EXIT);
screen.addCommand(SELECT);
screen.setCommandListener(commandListener);
screen.setTicker(ticker);