• Post Reply Bookmark Topic Watch Topic
  • New Topic

Urgent - Line wrap in JTextPane?

 
Sajee Joseph
Ranch Hand
Posts: 200
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everybody,
How do i achieve Line-wrap in JTextPane. In JTextArea i have a method 'setLineWrap(true)', which will enable line wrap. How do i achieve this using a JTextPane.
...Thanking you in advance.
....saj
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why not just use JTextArea if you need line wrap? That is what it was built for...

-Nate
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!