Win a copy of Mesos in Action this week in the Cloud/Virtualizaton 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: 5126
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic