This week's book giveaway is in the HTML/CSS/JavaScript forum.
We're giving away four copies of Practical SVG and have Chris Coyier on-line!
See this thread for details.
Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

how to turn off the word wrap in jeditorpane?

 
naved momin
Ranch Hand
Posts: 692
Eclipse IDE Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ?
 
Darryl Burke
Bartender
Posts: 5155
11
Java Netbeans IDE Opera
  • Likes 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
naved momin
Ranch Hand
Posts: 692
Eclipse IDE Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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 think I'll just lie down here for a second. And ponder this tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!