Article View: borland.public.jbuilder.java.swing
Article #9879Re: JTextArea 'vanishes' in JScrollPane
From: Mikhail M.Mizels
Date: Thu, 23 Dec 1999 00:00
Date: Thu, 23 Dec 1999 00:00
27 lines
1417 bytes
1417 bytes
Paul Furbacher [TeamB] wrote in message
<3856C6AB.98D845EC@bilbo.bio.purdue.edu>...
>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 use the Designer to write this for you, the code looks
>like this:
>
> jScrollPane1.getViewport().add(myTextArea, null));
I had the same problem. I've tried this way, but the result was the same.
The test example worked OK if JScrollPane was wrapped on the JFrame with a
GridBagLayout, but when I put it on the JPanel with GridBagLayout the
described above problem appeared.
With best regards, Mikhail.
Technical Details
Message-ID:
<83t85f$plo10@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<835siu$r7v5@forums.borland.com> <3856C6AB.98D845EC@bilbo.bio.purdue.edu>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,87d7d563e1526098 X-Google-Attributes: gid111d45,public From: "Mikhail M.Mizels" <mizels@cttcomp.rricc.tsi.ru> Subject: Re: JTextArea 'vanishes' in JScrollPane Date: 1999/12/23 Message-ID: <83t85f$plo10@forums.borland.com> X-Deja-AN: 564184535 References: <835siu$r7v5@forums.borland.com> <3856C6AB.98D845EC@bilbo.bio.purdue.edu> Organization: Another Netscape Collabra Server User X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Newsgroups: borland.public.jbuilder.java.swing