Submitted On 03-APR-2007
I wonder if its possible to add a method setLineWidth(int lineWidth) to do this and use setLineWrap() as a switch.
The setLineWidth(int lineWidth) method would set the allocated witdth as number of columns. For example if you want to alloc further 10 cols then this method would be called as follows:
setLineWidth(10);
which will add 10 further cols.
Submitted On 03-APR-2007
A note on setLineWidth(int lineWidth)
This method assumes that line width can be allocated dynamically. If so then it would also be reasonable to add a methode setLineHeight(int lineHeight) to add further rows to the textarea.
public void setLineWidth(int lineWidth);
public void setLineHeight(int lineHeight);
PLEASE NOTE: JDK6 is formerly known as Project Mustang
|