jQuery in Action, 2nd edition*
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 Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Continues Characters in JTextPane" Watch "Continues Characters in JTextPane" New topic

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).]
wood burning stoves
subject: Continues Characters in JTextPane
Similar Threads
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
JTextPane problem
Highlighting text in a JTextPane without scrolling to the end.