Re: How can I stop a JTextPane from word wrapping?
Posted By:
Anupama_G
Posted On:
Thursday, April 19, 2001 10:39 PM
HI
I think these two methods should work.
void setLineWrap(boolean wrap)-This turns the line wrapping on or off.
void setWrapStyleWord(boolean word)-If word is true long lines are wrapped at word boundries,if false then long lines are broken without taking boundraies into account.