🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Line wrap in JTextArea

#9807
From: Greg Tomalesky
Date: Mon, 31 Jan 2000 00:00
11 lines
978 bytes
Hi Gang:

    I am using a JTextArea as a ListCellRenderer. The text which I
eventually set into the list (setListData) can be wider than the width
of the list (or the JTextArea). The problem occurs when I re-size the
list. The long lines do NOT seem to wrap properly. I have experimented
with setLineWrap & setWrapStyleWord with no resolution to the problem.
Is JTextArea's parse calculation broke or am I doing something wrong?

Thanks in advance,
Greg
Technical Details
Message-ID: <38961419.8A6BE9E8@tis4000.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,d7093ad8931c3406,start
X-Google-Attributes: gid111d45,public
From: Greg Tomalesky <tomalesk@tis4000.com>
Subject: Line wrap in JTextArea
Date: 2000/01/31
Message-ID: <38961419.8A6BE9E8@tis4000.com>
X-Deja-AN: 580068159
Content-Transfer-Encoding: 7bit
Organization: Another Netscape Collabra Server User
X-Accept-Language: en
Content-Type: text/plain; charset=us-ascii
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.swing