🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

JTextField & JTextArea problem

#10984
From: Lois Neo
Date: Sat, 24 Jul 1999 00:00
16 lines
1167 bytes
Hi,

I need to do text editing on a JTextField and JTextArea and somehow as the
text grows, the JTextField's / JTextArea's width increases. This has been
undesirable as the other components are forced to increase their width also.
I would like to have the text in JTextField/JTextArea to automatically
scrolls to visible area instead of forcing the width to increase. How can I
achieve this?
The JTextField and JTextArea are put on a panel with GridBagLayout and I've
set them to Fill Horizontal. The panel is in turn put on a JScrollPane. Has
this setting got to do with it?

--
Thanks for any help given

Lois
Technical Details
Message-ID: <7na5ih$p7v6@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,fd9c78b38b5e2801,start
X-Google-Attributes: gid111d45,public
From: "Lois Neo" <slneo@cybergal.com>
Subject: JTextField & JTextArea problem
Date: 1999/07/24
Message-ID: <7na5ih$p7v6@forums.borland.com>
X-Deja-AN: 504458439
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
Organization: Another Netscape Collabra Server User
X-MSMail-Priority: Normal
Reply-To: "Lois Neo" <slneo@cybergal.com>
Newsgroups: borland.public.jbuilder.java.swing