public MIDletChooser() {
		JadFile jadFile = ApplicationManager.manager.jadFile;

        try {
            Image img = Image.createImage("/wap3-logo.png");
            infoAlert = new Alert(INFO_TITLE, INFO_TEXT, img, AlertType.INFO);
        } 
        catch (IOException ex) {
           ex.printStackTrace();
           throw new RuntimeException(ex.toString());
        }

        
        
        if(jadFile.getMIDletCount() == 1){
            infoAlert.addCommand(CMD_RESTART);
            infoAlert.setCommandListener(this);
        }
        
		for (int i = 1; i <= jadFile.getMIDletCount(); i++) {
			list.append(jadFile.getMIDlet(i).getName(), null);
		}

		//list.addCommand(LAUNCH);
		list.addCommand(CMD_INFO);
		list.setCommandListener(this);
	}