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 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 Murach's Java Servlets and JSP this week in the Servlets 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: 688

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: 4523
    
    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: 2152
    
    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: 688


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
word wrap styled text area?
JEditorPane disabling Line Wrap
Alter JTextPane to turn off word wrap?