}
	public void paintContent(int x, int y, int leftBorder, int rightBorder, Graphics g) {		//#ifdef tmp.directInput			//#ifdef tmp.allowDirectInput				if (this.isFocused && this.enableDirectInput) {			//#else				//# if (this.isFocused ) {			//#endif					g.setFont( this.font );					g.setColor( this.textColor );					int centerX = 0;					if (this.isLayoutCenter) {						centerX = leftBorder + (rightBorder - leftBorder) / 2;					}					if (this.text != null) {						for (int i = 0; i < this.textLines.length; i++) {							if (i == this.caretRow) {								if (this.isLayoutRight) {									g.drawString( this.caretRowLastPart, rightBorder, y, Graphics.TOP | Graphics.RIGHT );									if (this.showCaret) {										//#ifdef polish.css.textfield-caret-color											g.setColor( this.caretColor );										//#endif										g.drawChar( this.caretChar, rightBorder - this.caretRowLastPartWidth, y, Graphics.TOP | Graphics.RIGHT );										//#ifdef polish.css.textfield-caret-color											g.setColor( this.textColor );										//#endif									}									g.drawString( this.caretRowFirstPart, rightBorder - this.caretRowLastPartWidth - this.caretX, y, Graphics.TOP | Graphics.RIGHT );								} else if (this.isLayoutCenter) {									int width = this.caretX + this.caretWidth + this.caretRowLastPartWidth;									int leftX = centerX - (width / 2);									g.drawString( this.caretRowFirstPart, leftX, y, Graphics.TOP | Graphics.LEFT );									leftX += this.caretX;									if (this.showCaret) {										//#ifdef polish.css.textfield-caret-color											g.setColor( this.caretColor );										//#endif										g.drawChar( this.caretChar, leftX, y, Graphics.TOP | Graphics.LEFT );										//#ifdef polish.css.textfield-caret-color											g.setColor( this.textColor );										//#endif									}									leftX += this.caretWidth;									g.drawString( this.caretRowLastPart, leftX, y, Graphics.TOP | Graphics.LEFT );								} else {									int leftX = x;									g.drawString( this.caretRowFirstPart, leftX, y, Graphics.TOP | Graphics.LEFT );									leftX += this.caretX;									if (this.showCaret) {										//#ifdef polish.css.textfield-caret-color											g.setColor( this.caretColor );										//#endif										g.drawChar( this.caretChar, leftX, y, Graphics.TOP | Graphics.LEFT );										//#ifdef polish.css.textfield-caret-color											g.setColor( this.textColor );										//#endif									}									leftX += this.caretWidth;									g.drawString( this.caretRowLastPart, leftX, y, Graphics.TOP | Graphics.LEFT );								}							} else {								// this a normal row in which no caret is shown:								String line = this.textLines[i];								// adjust the painting according to the layout:								if (this.isLayoutRight) {									g.drawString( line, rightBorder, y, Graphics.TOP | Graphics.RIGHT );								} else if (this.isLayoutCenter) {									g.drawString( line, centerX, y, Graphics.TOP | Graphics.HCENTER );								} else {									// left layout (default)									g.drawString( line, x, y, Graphics.TOP | Graphics.LEFT );								}							}							x = leftBorder;							y += this.rowHeight;						} // for each line					} else if ( this.showCaret ) {						// this.text == null: paint only caret:						//#ifdef polish.css.textfield-caret-color							g.setColor( this.caretColor );						//#endif						if (this.isLayoutRight) {							g.drawChar( this.caretChar, rightBorder, y, Graphics.TOP | Graphics.RIGHT );						} else if (this.isLayoutCenter) {							g.drawChar( this.caretChar, centerX, y, Graphics.TOP | Graphics.HCENTER );						} else {							// left layout (default)							g.drawChar( this.caretChar, x, y, Graphics.TOP | Graphics.LEFT );						}					}					return;				} else { // this is either not focused or no direct input is enabled:					super.paintContent(x, y, leftBorder, rightBorder, g);					}		//#else			super.paintContent(x, y, leftBorder, rightBorder, g);		//#endif		if (this.showCaret && this.isFocused ) {			if (this.text == null) {				// when the text is null the appropriate font and color				// might not have been set, so set them now:				g.setFont( this.font );				//#ifndef polish.css.textfield-caret-color					g.setColor( this.textColor );				//#endif			}			//#ifdef polish.css.textfield-caret-color				g.setColor( this.caretColor );			//#endif						//#ifndef tmp.forceDirectInput				if (this.originalHeight > 0) {					y += this.originalHeight - this.font.getHeight();				}				if (this.isLayoutCenter) {					int centerX = leftBorder 						+ (rightBorder - leftBorder) / 2 						+ this.originalWidth / 2						+ 2;					g.drawChar(this.caretChar, centerX, y, Graphics.TOP | Graphics.LEFT );				} else if (this.isLayoutRight){					g.drawChar(this.caretChar, rightBorder, y, Graphics.TOP | Graphics.RIGHT );				} else {					x += this.originalWidth + 2;					g.drawChar(this.caretChar, x, y, Graphics.TOP | Graphics.LEFT );				}			//#endif		}	}