dcsimg
How can I stop a JTextPane from word wrapping?
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   chris_hair
Posted On:   Wednesday, April 18, 2001 03:17 PM

I read another post on this subject and tried what the man told me, but it didn't work. So how can I stop a JTextPane from word wrapping?

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.
About | Sitemap | Contact