🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: JTextArea 'vanishes' in JScrollPane

#9941
From: Paul Furbacher [TeamB]
Date: Tue, 14 Dec 1999 00:00
25 lines
1333 bytes
Jorg Janke wrote:
> 
> I wrapped a JTextArea in an JScrollPane - in a GridBagLayout.
> 
> pane.add(new JScrollPane(myTextArea), myGridBagControl);
> 
> The result looks OK, but if the Text Area fills up and is supposed to start
> scrolling, a gray bar comes up from below closing the Textfield, so that is
> all gray.
> If you delete text, everything is fine, if it fits in without scrolling.
> 
> > What am I missing?

If you use the Designer to write this for you, the code looks
like this:

  jScrollPane1.getViewport().add(myTextArea, null));


Perhaps this difference is the source of your problems.  I do
seem to remember that JScrollPane.add() exhibited problems,
but cannot say for sure.


Paul Furbacher (TeamB)
Technical Details
Message-ID: <3856C6AB.98D845EC@bilbo.bio.purdue.edu>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <835siu$r7v5@forums.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,87d7d563e1526098
X-Google-Attributes: gid111d45,public
From: "Paul Furbacher [TeamB]" <pf@bilbo.bio.purdue.edu>
Subject: Re: JTextArea 'vanishes' in JScrollPane
Date: 1999/12/14
Message-ID: <3856C6AB.98D845EC@bilbo.bio.purdue.edu>
X-Deja-AN: 560724527
Content-Transfer-Encoding: 7bit
References: <835siu$r7v5@forums.borland.com>
Content-Type: text/plain; charset=us-ascii
Organization: Reverse Alchemy, Inc.
Mime-Version: 1.0
Reply-To: pf@bilbo.bio.purdue.edu
Newsgroups: borland.public.jbuilder.java.swing