Article View: borland.public.jbuilder.java.swing
Article #10997Re: JTextField & JTextArea problem
From: Lois Neo
Date: Mon, 26 Jul 1999 00:00
Date: Mon, 26 Jul 1999 00:00
32 lines
1548 bytes
1548 bytes
I believe the problem lies with that one of the JTextfield's parent containers is a JScrollPane. this problem doesn't happen anymore after I removed the JScrollPane. -- Thanks for any help given Lois Lois Neo <slneo@cybergal.com> wrote in message news:7na5ih$p7v6@forums.borland.com... > 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:
<7ngcqj$1eg1@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<7na5ih$p7v6@forums.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,fd9c78b38b5e2801 X-Google-Attributes: gid111d45,public From: "Lois Neo" <slneo@cybergal.com> Subject: Re: JTextField & JTextArea problem Date: 1999/07/26 Message-ID: <7ngcqj$1eg1@forums.borland.com> X-Deja-AN: 505216519 References: <7na5ih$p7v6@forums.borland.com> 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