Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

not wrapping lines in JTextPane

Posted on 2002-04-21
3
Medium Priority
?
374 Views
Last Modified: 2006-11-17
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.
0
Comment
Question by:SteelFist
  • 2
3 Comments
 
LVL 92

Accepted Solution

by:
objects earned 300 total points
ID: 6958381
0
 

Author Comment

by:SteelFist
ID: 6958458
10x, it sure was a short reply :)
0
 
LVL 92

Expert Comment

by:objects
ID: 6958480
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
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses

885 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question