This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Customer Requirements for Developers and have Marcho Behler on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes Turn off WordWrap in StyledDokument and JTextPane Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Customer Requirements for Developers this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Turn off WordWrap in StyledDokument and JTextPane" Watch "Turn off WordWrap in StyledDokument and JTextPane" New topic
Author

Turn off WordWrap in StyledDokument and JTextPane

Jimmy Nilsson
Greenhorn

Joined: Sep 25, 2004
Posts: 26
Hey

How do i turn off the WordWrap in TysledDokument and JTextPane?

//Jimmy
Craig Wood
Ranch Hand

Joined: Jan 14, 2004
Posts: 1535
Line Wrapping in JTextPane
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Turn off WordWrap in StyledDokument and JTextPane
 
It's not a secret anymore!