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 problem: JTextPane doesn't wrap Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "problem: JTextPane doesn Watch "problem: JTextPane doesn New topic

problem: JTextPane doesn't wrap

sorcha kripshaw

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?
I agree. Here's the link:
subject: problem: JTextPane doesn't wrap
It's not a secret anymore!