Article View: borland.public.jbuilder.java.swing
Article #10896Re: JTextField & JTextArea problem
From: Chuck Baldi
Date: Wed, 04 Aug 1999 00:00
Date: Wed, 04 Aug 1999 00:00
39 lines
1817 bytes
1817 bytes
You could try setting the preferred size of your JTextField. That might keep the JScrollPane from moving things around on you. Chuck Baldi Lois Neo wrote: > > 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:
<37A84AC7.5C6C1436@didax.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<7na5ih$p7v6@forums.borland.com> <7ngcqj$1eg1@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: Chuck Baldi <cbaldi@didax.com> Subject: Re: JTextField & JTextArea problem Date: 1999/08/04 Message-ID: <37A84AC7.5C6C1436@didax.com> X-Deja-AN: 508781630 Content-Transfer-Encoding: 7bit References: <7na5ih$p7v6@forums.borland.com> <7ngcqj$1eg1@forums.borland.com> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii Organization: Another Netscape Collabra Server User Mime-Version: 1.0 Reply-To: cbaldi@christcom.net Newsgroups: borland.public.jbuilder.java.swing