[nbusers] How to enable wrapping in JTextPane

  • From: "kcaz" < >
  • To:
  • Subject: [nbusers] How to enable wrapping in JTextPane
  • Date: Sun, 02 Dec 2012 12:32:33 -0500

I have been playing around with this, because I really want to get this to 
work. I can override the getScrollableTracksViewportWidth method on the 
JTextPane to always return true, which makes it so that the JTextPane's width 
never exceeds that of the JScrollPane. This is good for when lines are broken 
up into smaller words, but again if the line is too big it just leaves the 
screen and you cannot see it.

Any suggestions?






[nbusers] How to enabled wrapping in JTextPane

kcaz 12/01/2012

[nbusers] How to enable wrapping in JTextPane

kcaz 12/02/2012

[nbusers] Re: How to enabled wrapping in JTextPane

Ion Iovu 12/03/2012

[nbusers] How to enable wrapping in JTextPane

kcaz 12/03/2012

Project Features

About this Project

www was started in November 2009, is owned by jpirek, and has 21 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20140418.2d69abc). © 2013, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close