🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Writing my own setLineWrap for the JTextArea

#11674
From: Tad Frysinger
Date: Sat, 17 Apr 1999 00:00
18 lines
1117 bytes
In article <7f28qd$ge68@forums.borland.com>, recherche@generix.fr says...
> I'd like to handle by my own in my multiline composant JTextArea the cut of
> the line depending on
> a space or a word.
> 
> How can I tell my JTextArea the end of the line so that the curseur come
> back to the next line ?
> 
> Any suggestions very appreciated, :)Anne
> 
> 
> 
If you really want to do this, look at the source in the latest (prior to 
JFC 1.1) swing library - they surfaced a property to have words wrap (not 
just individual character wrap).  Since this is there, I'm not sure why 
you'd want to re-write it, though...

Tad Frysinger (TeamB)
Technical Details
Message-ID: <MPG.1182564911931889899bd@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <7f28qd$ge68@forums.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,bb138dca5041edb5
X-Google-Attributes: gid111d45,public
From: tfrysinger@earthlink.net (Tad Frysinger)
Subject: Re: Writing my own setLineWrap for the JTextArea
Date: 1999/04/17
Message-ID: <MPG.1182564911931889899bd@forums.borland.com>
X-Deja-AN: 467650428
References: <7f28qd$ge68@forums.borland.com>
Organization: Freezone Enterprises
Newsgroups: borland.public.jbuilder.java.swing