🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #16566

Re: Wrapping lines in a TextArea control

#16566
From: B. Callaway
Date: Fri, 12 Feb 1999 00:00
22 lines
1401 bytes
Hi,
    It depends on what library you're using. If you're using the AWT text
control, the scrollbars policy you set determines whether or not there is
word wrapping. If you use the Swing's JTextArea, there should be a property
in the Component Inspector called "lineWrap". It should be a boolean
variable. Set it to _true_ for word wrapping, set it to _false_ for no word
wrapping.

Hope that helps!

Tom Heagy wrote in message <36C455E5.413A0148@sciatl.com>...
>Can anyone tell me what kind of control to use to show text on a panel
>where the text will automatically "wrap-around", based on the length of
>the text.  When I place a "textarea" control on my panel, and place some
>long text in it, it does not wrap the text around.  You can scroll right
>in order to see it all, but I'm looking for something that will do the
>wrap for me.
>
>Thanks in advance,
>
>-Tom
>
Technical Details
Message-ID: <7a20t7$qkk2@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <36C455E5.413A0148@sciatl.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,5ccbf26537dfc53a
X-Google-Attributes: gidf74b3,public
From: "B. Callaway" <bdcallaway@iname.com>
Subject: Re: Wrapping lines in a TextArea control
Date: 1999/02/12
Message-ID: <7a20t7$qkk2@forums.borland.com>
X-Deja-AN: 443725874
References: <36C455E5.413A0148@sciatl.com>
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3155.0
Organization: Another Netscape Collabra Server User
Newsgroups: borland.public.jbuilder.java.language