wood burning stoves 2.0*
The moose likes Swing / AWT / SWT and the fly likes Continues Characters in JTextPane Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Continues Characters in JTextPane" Watch "Continues Characters in JTextPane" New topic
Author

Continues Characters in JTextPane

Savio Mascarenhas
Ranch Hand

Joined: Nov 29, 2000
Posts: 108
Hi !!!
I am currently using JTextPane so that to display multicolored text.
The default JTextPane object automatically wraps up text at the end of the JTextPane object.
How should this text wrapping be disabled so that the text continues on the same line instead of breaking at the end of the JTextPane object ... something like TextField/JTextField .Only problem is that these objects do not support multicolored text and text formatting.
Also,i do not want to use JScrollPane to scroll horizontally.
Pls suggest.
Thanks a lot.

[This message has been edited by Savio Mascarenhas (edited August 26, 2001).]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Continues Characters in JTextPane
 
Similar Threads
Highlighting text in a JTextPane without scrolling to the end.
JTextPane problem
How do I have a multicolored text in JTextArea? (VERY URGENT )
Multicolored JTextPane/ JEditorPane/ JTextArea output
Need a help on developing multicolored textarea for chat application