Item[] myItems = this.items;
Item[] myItems; synchronized (this.itemsList) { myItems = this.items; }
	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:		y += this.yOffset;		//#ifdef polish.css.view-type			if (this.view != null) {				this.view.paintContent(x, y, leftBorder, rightBorder, g);				return;			}		//#endif		Item[] myItems = this.items;		//#ifdef tmp.useTable		if (this.columnsSetting == NO_COLUMNS || myItems.length == 1) {		//#endif			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.				item.paint(x, y, leftBorder, rightBorder, g);				y += item.itemHeight + this.paddingVertical;			}		//#ifdef tmp.useTable		} else {			x = leftBorder;			int columnIndex = 0;			int rowIndex = 0;			for (int i = 0; i < myItems.length; i++) {				Item item = myItems[i];				int columnWidth = this.columnsWidths[ columnIndex ];				item.paint(x, y, x, x + columnWidth, g);				x += columnWidth + this.paddingHorizontal;				columnIndex++;				if (columnIndex == this.numberOfColumns) {					columnIndex = 0;					y += this.rowsHeights[ rowIndex ] + this.paddingVertical;					x = leftBorder;					rowIndex++;				}			}		}		//#endif	}