y += item.itemHeight + this.paddingVertical;
	protected void paintContent(int x, int y, int leftBorder, int rightBorder, Graphics g) {		// paints all items,		// the layout will be done according to this containers'		// layout or according to the items layout, when specified.		// adjust vertical start for scrolling:		//#if polish.debug.debug			if (this.yOffset != 0) {				//#debug				System.out.println("Container: drawing " + getClass().getName() + " with yOffset=" + this.yOffset );			}		//#endif		y += this.yOffset;		//#ifdef tmp.supportViewType			if (this.view != null) {				this.view.paintContent(x, y, leftBorder, rightBorder, g);				return;			}		//#endif		Item[] myItems;		//synchronized (this.itemsList) {			myItems = this.items;		//}		int focusedX = x;		int focusedY = 0;		int focusedRightBorder = rightBorder;		if (!(this.isLayoutCenter || this.isLayoutRight)) {			// adjust the right border:			rightBorder = leftBorder + this.contentWidth;		}		for (int i = 0; i < myItems.length; i++) {			Item item = myItems[i];			// currently the NEWLINE_AFTER and NEWLINE_BEFORE layouts will be ignored,			// since after every item a line break will be done.			if (i == this.focusedIndex) {				focusedY = y;				item.getItemHeight( rightBorder - x, rightBorder - leftBorder );			} else {				// the currently focused item is painted last				item.paint(x, y, leftBorder, rightBorder, g);			}			y += item.itemHeight + this.paddingVertical;		}				// paint the currently focused item:		if (this.focusedItem != null) {			//System.out.println("Painting focusedItem " + this.focusedItem + " with width=" + this.focusedItem.itemWidth + " and with increased colwidth of " + (focusedRightBorder - focusedX)  );			this.focusedItem.paint(focusedX, focusedY, focusedX, focusedRightBorder, g);		}	}