public TextFieldCellRenderer(JScrollPane pScrollPane) {
// CraigM:25/07/2008 - Force any pending actions on the widget through (like colour changes), so when we clone the widget, we get the latest info
UIutils.processGUIActions(pScrollPane);
MultiLineTextField tf = (MultiLineTextField)pScrollPane.getViewport().getComponent(0);
this.sp = new JScrollPane(tf.cloneComponent());
ArrayFieldCellHelper.setUpCellRenderer(pScrollPane, this.sp); // CraigM: 28/03/2008
this.sp.setPreferredSize(pScrollPane.getPreferredSize());
this.sp.setMinimumSize(pScrollPane.getMinimumSize());
this.sp.setSize(pScrollPane.getSize());
this.sp.setHorizontalScrollBarPolicy(pScrollPane.getHorizontalScrollBarPolicy());