Article View: borland.public.jbuilder.java.swing
Article #9076Re: "Real" Line Wrapping with JTextArea
From: Jeroen Zwartepoorte
Date: Tue, 13 Jun 2000 00:00
Date: Tue, 13 Jun 2000 00:00
24 lines
1642 bytes
1642 bytes
The only thing i can think of right here is to either: - Read the JTextArea source and modify it to suit your needs. - Learn about the javax.swing.text package and create a special Document class that does what you want. Jeroen "Christoph Hipp" <christoph_hipp@agilent.com> wrote in message news:3946399a.428778300@newsgroups.borland.com... > JTextArea can do Linewrapping, but it does not insert an linfeed code > at the end of the line (ascii 10). But i really debend on this. So, > does anybody know an Text-control, that handels the linebreaks in this > manner? > > As Workaround, i used the TextAreaControl of the JBCL package and > wrote some own code in the textValueChanged Event. But this is very > ugly as the JBCL control doesn't work with linux in this case and the > text refresh (inserts,deletions,...) can only be handled correct by > doing a complete substitution of the current text. This leads to awful > flickering with a long text, also the cursor has to be repositioned > every time, a keypress is done :(( > > Thanks in advance
Technical Details
Message-ID:
<8i5e2j$fn8@bornews.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<3946399a.428778300@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,b8b77f3860de61a4 X-Google-Attributes: gid111d45,public From: "Jeroen Zwartepoorte" <Jeroen@xs4all.nl> Subject: Re: "Real" Line Wrapping with JTextArea Date: 2000/06/13 Message-ID: <8i5e2j$fn8@bornews.borland.com> X-Deja-AN: 633985469 References: <3946399a.428778300@newsgroups.borland.com> X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 Organization: Another Netscape Collabra Server User X-MSMail-Priority: Normal Newsgroups: borland.public.jbuilder.java.swing