Article View: borland.public.jbuilder.java.swing
Article #1266Re: S: turn off line wrap
From: John McGrath [TeamB]
Date: Tue, 09 Mar 2004 20:10
Date: Tue, 09 Mar 2004 20:10
22 lines
1748 bytes
1748 bytes
On 3/3/2004 at 6:15:06 AM, Envoy wrote:
> im want to use a JTextPane in my programm.
> Is there a way to turn off the automatic line wrap when the
> text I typed reaches the end of the line?
>
> With a JTextArea it is done with "setLineWrap(false)", but this
> method doesn't exist in the JTextPane class. So how can I disable it?
I am pretty sure there is no way to set a global line-wrapping property
for a JTextPane. The model used by JTextPane (and JEditorPane) is far
more complex than that. This is something like asking how to turn off
line wrapping for a web browser.
--
Regards,
John McGrath [TeamB]
---------------------------------------------------
Before sending me e-mail, please read:
http://www.JPMcGrath.net/newsgroups/e-mail.html
Technical Details
Message-ID:
<404e24ce$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!border1.nntp.ash.giganews.com!nntp.giganews.com!newshosting.com!nx01.iad01.newshosting.com!203.109.252.33.MISMATCH!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<MPG.1aafdca469aaa935989692@news.individual.net>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,3c3137cd57242084 X-Google-Attributes: gid111d45,public X-Google-ArrivalTime: 2004-03-09 12:24:10 PST From: "John McGrath [TeamB]" <ng-b@JPMcGrath.net> Subject: Re: S: turn off line wrap Newsgroups: borland.public.jbuilder.java.swing References: <MPG.1aafdca469aaa935989692@news.individual.net> User-Agent: XanaNews/1.16.1.11 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 NNTP-Posting-Host: 151.197.214.141 Message-ID: <404e24ce$1@newsgroups.borland.com> Date: 9 Mar 2004 12:10:54 -0800 X-Trace: newsgroups.borland.com 1078863054 151.197.214.141 (9 Mar 2004 12:10:54 -0800) Lines: 22 X-Authenticated-User: jpmcgrath Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!border1.nntp.ash.giganews.com!nntp.giganews.com!newshosting.com!nx01.iad01.newshosting.com!203.109.252.33.MISMATCH!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail