🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #9073

"Real" Line Wrapping with JTextArea

#9073
From: Christoph Hipp
Date: Tue, 13 Jun 2000 00:00
14 lines
1157 bytes
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: <3946399a.428778300@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,b8b77f3860de61a4,start
X-Google-Attributes: gid111d45,public
From: christoph_hipp@agilent.com (Christoph Hipp)
Subject: "Real" Line Wrapping with JTextArea
Date: 2000/06/13
Message-ID: <3946399a.428778300@newsgroups.borland.com>
X-Deja-AN: 633983324
X-Trace: 13 Jun 2000 06:42:41 -0800, 155.208.254.68
Organization: Agilent Technologies
Newsgroups: borland.public.jbuilder.java.swing