x = leftBorder;
	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		boolean setClipping = (this.yOffset != 0 && this.marginTop != 0);		int clipX = 0;		int clipY = 0;		int clipWidth = 0;		int clipHeight = 0;		if (setClipping) {			clipX = g.getClipX();			clipY = g.getClipY();			clipWidth = g.getClipWidth();			clipHeight = g.getClipHeight();			g.clipRect(clipX, y - this.paddingTop, clipWidth, clipHeight - ((y - this.paddingTop) - clipY) );		}		y += this.yOffset;		//#ifdef tmp.supportViewType			if (this.view != null) {				this.view.paintContent(x, y, leftBorder, rightBorder, g);			} else {		//#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);			}		//#ifdef tmp.supportViewType			}		//#endif				Item item = this.focusedItem;		if (item != null) {			if (item.internalX != -9999) {				this.internalX =  item.contentX - this.contentX + item.internalX;				this.internalWidth = item.internalWidth;				this.internalY = item.contentY - this.contentY + item.internalY;				this.internalHeight = item.internalHeight;			} else {				this.internalX = item.xLeftPos - this.contentX;				this.internalWidth = item.itemWidth;				this.internalY = (item.yTopPos - this.yOffset) - this.contentY;				this.internalHeight = item.itemHeight;			}		}		if (setClipping) {			g.setClip(clipX, clipY, clipWidth, clipHeight);		}	}