aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes how to turn off the word wrap in jeditorpane? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "how to turn off the word wrap in jeditorpane?" Watch "how to turn off the word wrap in jeditorpane?" New topic
Author

how to turn off the word wrap in jeditorpane?

naved momin
Ranch Hand

Joined: Jul 03, 2011
Posts: 682

my jeditorpane automatically wrap the words ..i dont want that , all i want is a horizontal bar to appear and user can write as long as he can
how to do that
i have tried couple of methods like
i have override the getScrollableTracksViewportWidth() but that didnt help , does any one know how i can turn off the word wrap ?


The Only way to learn is ...........do!
Visit my blog http://inaved-momin.blogspot.com/
Darryl Burke
Bartender

Joined: May 03, 2008
Posts: 4522
    
    5

naved, I think you've been around long enough and have posted enough threads in the Swing / AWT / SWT / JFace to know of its existence. So why did you start this in Java in General?


luck, db
There are no new questions, but there may be new answers.
Rob Camick
Ranch Hand

Joined: Jun 13, 2009
Posts: 2090
    
    7
cross posted: http://stackoverflow.com/questions/8960732/how-to-turn-off-word-wrap-in-jeditorpane

Be Forthright When Cross Posting to Other Sites
naved momin
Ranch Hand

Joined: Jul 03, 2011
Posts: 682


soory, i don't know about cross posting, i have no intentions to hurt you guys, you are great and next time i will keep in mind about cross posting
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to turn off the word wrap in jeditorpane?
 
Similar Threads
NX: choices.txt and formatting
How to scroll in a JEditorPane
JEditorPane disabling Line Wrap
Alter JTextPane to turn off word wrap?
word wrap styled text area?