Link to home
Start Free TrialLog in
Avatar of SteelFist
SteelFist

asked on

not wrapping lines in JTextPane

Hi.

I am using a JTextPane in order to write each line in a different color, but i got a problem that the lines are cut and the JTextPane is not using the horizintal scrollBar, i want the lines to be printed at the size i put them, i dont want to wrap them automatically, how do i change this option? i know that in JTextArea it's "setLineWrap" but i cant find it in JTextPane

Thanks.
ASKER CERTIFIED SOLUTION
Avatar of Mick Barry
Mick Barry
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of SteelFist
SteelFist

ASKER

10x, it sure was a short reply :)
Tough school!! what do u have to do to get an 'A' :-)

http://www.objects.com.au
Brainbench MVP for Java 1
http://www.brainbench.com