🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: jList on jScrollPane has no scrollbars

#17991
From: Richard Wilkman
Date: Fri, 28 Aug 1998 00:00
40 lines
1983 bytes
Max:

I suspect all JFC programmers have sets of "wiggle" code like that to
coax the UI to look right.

-Rich

Max Polk wrote:
> 
> > 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!

-- 

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Rich Wilkman
Senior Quality Assurance Engineer
Borland JBuilder Team

If you see something that looks like an opinion up there,
it's mine and mine alone.

Mail sent to me from the newsgroups won't bounce but will
be ignored.  If I have time, I'll respond, but you  have
a better chance if you confine your posts to the newsgroups
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Technical Details
Message-ID: <35E6CE5A.4B8F8D1D@inprise.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <35E599D6.809FF40@LocalIP.net> <35E5E693.88BB3DDD@inprise.com> <MPG.104fbaf131656f4198968d@forums.borland.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: Richard Wilkman <rwilkman@inprise.com>
Subject: Re: jList on jScrollPane has no scrollbars
Date: 1998/08/28
Message-ID: <35E6CE5A.4B8F8D1D@inprise.com>
X-Deja-AN: 385656800
Content-Transfer-Encoding: 7bit
References: <35E599D6.809FF40@LocalIP.net> <35E5E693.88BB3DDD@inprise.com> <MPG.104fbaf131656f4198968d@forums.borland.com>
Content-Type: text/plain; charset=us-ascii
Organization: Another Netscape Collabra Server User
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.language