System.out.println("Init content of MenuBar - isOpened=" + this.isOpened );
	protected void initContent(int firstLineWidth, int lineWidth) {		if (this.isOpened) {			int titleHeight = this.screen.titleHeight; // + this.screen.subTitleHeight + this.screen.infoHeight;			int screenHeight = this.screen.screenHeight;			this.topY = titleHeight;			this.commandsContainer.setVerticalDimensions( titleHeight, screenHeight );			//System.out.println("setting vertical dimension: " + topMargin + ", " + (this.screen.screenHeight - topMargin) );			this.commandsContainerWidth = (this.screen.screenWidth * 2) / 3;			int containerHeight = this.commandsContainer.getItemHeight(this.commandsContainerWidth, this.commandsContainerWidth);			this.commandsContainerY = screenHeight - containerHeight;			if (this.commandsContainerY < titleHeight) {				this.commandsContainerY = titleHeight;			}			/*			int focusedIndex = this.commandsContainer.focusedIndex;			this.canScrollUpwards = (focusedIndex != 0); 			this.canScrollDownwards = (focusedIndex != this.commandsList.size() - 1 );			*/			this.canScrollUpwards = (this.commandsContainer.yOffset != 0);			this.canScrollDownwards = (this.commandsContainer.yOffset + containerHeight > screenHeight - titleHeight) && (this.commandsContainer.focusedIndex != this.commandsList.size() - 1 );			this.paintScrollIndicator = this.canScrollUpwards || this.canScrollDownwards;			//#if !tmp.useInvisibleMenuBar				if (this.selectImage != null) {					this.singleLeftCommandItem.setImage( this.selectImage );					if (this.showImageAndText) {						//#ifdef polish.command.select:defined							//#= this.singleLeftCommandItem.setText( "${polish.command.select}" );						//#else							this.singleLeftCommandItem.setText( "Select" );						//#endif					} else {						this.singleLeftCommandItem.setText( null );					}				} else {					this.singleLeftCommandItem.setImage( (Image)null );					//#ifdef polish.command.select:defined						//#= this.singleLeftCommandItem.setText( "${polish.command.select}" );					//#else						this.singleLeftCommandItem.setText( "Select" );					//#endif				}				if (this.cancelImage != null) {					this.singleRightCommandItem.setImage( this.cancelImage );					if (this.showImageAndText) {						//#ifdef polish.command.cancel:defined							//#= this.singleRightCommandItem.setText(  "${polish.command.cancel}" );						//#else							this.singleRightCommandItem.setText( "Cancel" );						//#endif					} else {						this.singleRightCommandItem.setText( null );					}				} else {					//#ifdef polish.command.cancel:defined						//#= this.singleRightCommandItem.setText(  "${polish.command.cancel}"  );					//#else						this.singleRightCommandItem.setText( "Cancel" );					//#endif				}			//#endif		} else {			//#if tmp.useInvisibleMenuBar				this.background = null;				this.border = null;				this.contentWidth = 0;				this.contentHeight = 0;			//#else				// the menu is closed				this.paintScrollIndicator = false;				if (this.singleRightCommand != null) {					this.singleRightCommandItem.setText( this.singleRightCommand.getLabel() );					this.singleRightCommandItem.setImage( (Image)null );				}				if (this.commandsList.size() > 0) {					if (this.optionsImage != null) {						this.singleLeftCommandItem.setImage( this.optionsImage );						if (this.showImageAndText) {							//#ifdef polish.command.options:defined								//#= this.singleLeftCommandItem.setText( "${polish.command.options}" );							//#else								this.singleLeftCommandItem.setText( "Options" );											//#endif						} else {							this.singleLeftCommandItem.setText( null );						}					} else {						this.singleLeftCommandItem.setImage( (Image)null );						//#ifdef polish.command.options:defined							//#= this.singleLeftCommandItem.setText( "${polish.command.options}" );						//#else							this.singleLeftCommandItem.setText( "Options" );										//#endif					}				}			//#endif		}		//#if !tmp.useInvisibleMenuBar			int availableWidth = lineWidth / 2;			if ( ! this.isOpened && this.singleRightCommand == null ) {				availableWidth = lineWidth;			}			//System.out.println("Initialising single commands with a width of " + availableWidth + " lineWidth is " + lineWidth);			int height = this.singleLeftCommandItem.getItemHeight( availableWidth, availableWidth);			if (this.singleRightCommandItem.getItemHeight( availableWidth, availableWidth ) > height) {				height = this.singleRightCommandItem.itemHeight;			}			if (height > this.contentHeight) {				this.contentHeight = height; 			}			this.singleLeftCommandY = this.contentHeight - this.singleLeftCommandItem.itemHeight;			this.singleRightCommandY = this.contentHeight - this.singleRightCommandItem.itemHeight;			this.contentWidth = lineWidth;		//#endif	}