Solved

not wrapping lines in JTextPane

Posted on 2002-04-21
3
363 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 100 total points
Comment Utility
0
 

Author Comment

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

Expert Comment

by:objects
Comment Utility
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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Suggested Solutions

For customizing the look of your lightweight component and making it look lucid like it was made of glass. Or: how to make your component more Apple-ish ;) This tip assumes your component to be of rectangular shape and completely opaque. (COD…
INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
This video teaches viewers about errors in exception handling.

772 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now