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.
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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
http://www.objects.com.au
Brainbench MVP for Java 1
http://www.brainbench.com
ASKER