File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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).]
I agree. Here's the link:
subject: Continues Characters in JTextPane
It's not a secret anymore!