• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

how to turn off the word wrap in jeditorpane?

 
Ranch Hand
Posts: 692
Eclipse IDE Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ?
 
Bartender
Posts: 5167
11
Netbeans IDE Opera Java
  • Likes 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Rancher
Posts: 3324
32
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 692
Eclipse IDE Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Rob Camick wrote:cross posted: http://stackoverflow.com/questions/8960732/how-to-turn-off-word-wrap-in-jeditorpane

Be Forthright When Cross Posting to Other Sites


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
 
reply
    Bookmark Topic Watch Topic
  • New Topic