*/
public BufferedImage getImage(int width) {
int height = this.sp.getMinimumSize().height;
// TF:27/11/2009:Changed this to use the passed width
// int width = this.sp.getMinimumSize().width;
MultiLineTextField tf = (MultiLineTextField)this.sp.getViewport().getComponent(0);
if (this.spPainter == null) {
MultiLineTextField newTF = TextEditFactory.newTextField("painter", tf.getRows(), tf.getColumns());
this.spPainter = new JScrollPane(newTF);
this.spPainter.setHorizontalScrollBarPolicy(this.sp.getHorizontalScrollBarPolicy());
this.spPainter.setVerticalScrollBarPolicy(this.sp.getVerticalScrollBarPolicy());
newTF.setForeground(tf.getForeground());
newTF.setBackground(tf.getBackground());
}
return ArrayFieldCellHelper.createBufferedImage(this.spPainter, width, height);
}