This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes problem: JTextPane doesn't wrap 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 "problem: JTextPane doesn Watch "problem: JTextPane doesn New topic
Author

problem: JTextPane doesn't wrap

sorcha kripshaw
Greenhorn

Joined: May 02, 2002
Posts: 5
I have a JTextPane inside a ScrollPane (inside a SplitPane - part of a chatroom). For some reason the text won't wrap. Hence, if I send text to the chatroom that's longer than the wideth of the TextPane it disappears instead of continuing on next line as it should.
Ideas? Help?
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: problem: JTextPane doesn't wrap
 
Similar Threads
Setting the width of a JTextPane
Wrap mode in JTextpane
Stop text from wrapping
How to retrieve an icon from JTextPane ??
Alter JTextPane to turn off word wrap?