🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #17987

Re: jList on jScrollPane has no scrollbars

#17987
From: Max Polk
Date: Thu, 27 Aug 1998 00:00
16 lines
1202 bytes
> JFC doesn't paint very often and explicit calls to repaint() or
> invalidate()/validate() are pretty standard in JFC coding.  It's worse
> in Applets since neither browser supports resizing (though you get a
> little break if your Applet lives in a frame).

I once had to do the following, and *NOTHING* *ELSE* would work.  Even 
one slight change from this would not repaint.  Here was my "magic" that 
I saw someone else do, so I adopted it:

     // trying to repaint dirty component "whatever" below:
     whatever.invalidate ();
     whatever.validate ();
     whatever.repaint ();

As I said, leave even one of those out, or switch the order, and it just 
won't work.  Why?  I have no idea!
Technical Details
Message-ID: <MPG.104fbaf131656f4198968d@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <35E599D6.809FF40@LocalIP.net> <35E5E693.88BB3DDD@inprise.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,a07f7d617e4c29d1
X-Google-Attributes: gidf74b3,public
From: none@none.com (Max Polk)
Subject: Re: jList on jScrollPane has no scrollbars
Date: 1998/08/27
Message-ID: <MPG.104fbaf131656f4198968d@forums.borland.com>
X-Deja-AN: 385459900
References: <35E599D6.809FF40@LocalIP.net> <35E5E693.88BB3DDD@inprise.com>
Organization: Another Netscape Collabra Server User
Newsgroups: borland.public.jbuilder.java.language