• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to make wrapping of a word off in JTextPane  RSS feed

 
danish shaikh
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I m creating an RTF Text Editor in that i hav used an JTextPane...
Now i want to stop the word wrapping ... n there is no function with textpane... like textarea..
textArea.setLineWrap(true);
textArea.setWrapStyleWord(true);
so wat should i do now.

Regards,
 
Serghei Jelauc
Ranch Hand
Posts: 128
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Chek this link web page
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!