🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

How to set size of JTextArea?

#10110
From: Alex Colic
Date: Mon, 08 Nov 1999 00:00
12 lines
1082 bytes
Hi,

I am using a JTextArea in an applet of mine. The panel is using a two column
grid layout. In the first column I have a label. In the second I have a
JScrollPane and in that I have a JTextArea. Right now, the JTextArea is
showing only one line. When I type into it, the JTextArea does not word
wrap. I have tried setting the setLineWrap to true, the setrow and setColumn
properties but I have not been successfull. I would like to set it up so
that the JTextArea is 5 lines high and that once the user starts typing in,
the lines wordwrap. Any help is appreciated.

Alex
Technical Details
Message-ID: <8075d9$4jn4@forums.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,9cc6a19b03b97688,start
X-Google-Attributes: gid111d45,public
From: "Alex Colic" <acolic@yahoo.com>
Subject: How to set size of JTextArea?
Date: 1999/11/08
Message-ID: <8075d9$4jn4@forums.borland.com>
X-Deja-AN: 546012077
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
Organization: Another Netscape Collabra Server User
X-MSMail-Priority: Normal
Newsgroups: borland.public.jbuilder.java.swing