File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Reply 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: 675

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: 4167
    
    3

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: 1790
    
    2
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: 675


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://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: how to turn off the word wrap in jeditorpane?
 
Similar Threads
JEditorPane disabling Line Wrap
NX: choices.txt and formatting
word wrap styled text area?
How to scroll in a JEditorPane
Alter JTextPane to turn off word wrap?