🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: es.comp.lenguajes.java
Article #17043

Scrollbar horizontal en un JScrollPane.

#17043
From: Sergio
Date: Mon, 11 Dec 2000 19:24
18 lines
1733 bytes
Tengo un JScrollPane con una pol�tica
JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED.

El JScrollPane contiene un JEditorPane con algo de texto.

Cuando maximizo la ventana y luego la restauro a su tama�o original, aparece
en el JScrollPane una barra de desplazamiento horizontal.  Supongo que se
debe a que el JScrollPane considera que el �rea que tiene que mostrar es la
que estaba mostrando cuando la ventana estaba maximizada.

Sin embargo, yo quiero que la barra de desplazamiento horizontal aparezca
s�lo cuando sea realmente necesario (es decir, cuando el texto contenido en
su JEditorPane sea muy largo.

Por favor, si tienes alguna idea acerca de qu� puedo hacer para resolver el
problema, d�melo.

Muchas gracias.
Technical Details
Message-ID: <QR9Z5.41132$yO2.1182694@telenews.teleline.es>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!peer.news.opaltelecom.net!newsfeed.wirehub.nl!newscore.gigabell.net!fu-berlin.de!newsfeed.bcn.ttd.net!newsfeed.mad.ttd.net!telenews.teleline.es!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII
X-Google-Thread: 1116f3,8ed5a9a54ee0ba04,start
X-Google-Attributes: gid1116f3,public
X-Google-ArrivalTime: 2000-12-11 11:23:41 PST
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!peer.news.opaltelecom.net!newsfeed.wirehub.nl!newscore.gigabell.net!fu-berlin.de!newsfeed.bcn.ttd.net!newsfeed.mad.ttd.net!telenews.teleline.es!not-for-mail
From: "Sergio" <sostersaser@yahoo.es>
Newsgroups: es.comp.lenguajes.java
Subject: Scrollbar horizontal en un JScrollPane.
Lines: 23
X-Newsreader: Microsoft Outlook Express 4.72.3110.5
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
Message-ID: <QR9Z5.41132$yO2.1182694@telenews.teleline.es>
Date: Mon, 11 Dec 2000 19:24:32 GMT
NNTP-Posting-Host: 213.4.255.102
X-Complaints-To: newsmaster@company.com
X-Trace: telenews.teleline.es 976562672 213.4.255.102 (Mon, 11 Dec 2000 20:24:32 MET)
NNTP-Posting-Date: Mon, 11 Dec 2000 20:24:32 MET
Organization: Typhoon Authentication Testing Club