The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
November 2000

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

Preventing JTextPane from Word Wrapping

Posted by C L on November 17, 2000 at 10:33 PM

Hi,

I was wondering if anybody knew how to stop a JTextPane from word wrapping (I know that JTextArea does it but the setLineWrap(boolean) method doesn't transfer over)? I have seen syntax highlighters and text editors supporting word wrap and no word wrap, so I am sure it can be done. Thanks in advance.

-- C



Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us