🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: JList with scrollbar

#13191
From: Vladimir Olenin
Date: Sun, 30 Aug 1998 00:00
64 lines
2640 bytes
This is a multi-part message in MIME format.
--------------B76C78E948339D06A05C0FC0
Content-Type: text/plain; charset=koi8-r
Content-Transfer-Encoding: 7bit

Hi Martin, hi Alex,

The thing is that if the contents of a table, for instance, changes,
revalidate doesn't help. U have to "announce" that the contents have
changed and the whole table should be redrawn. Anyway, u're welcome any
time. Was a pleasure to help all of u. BTW, what is the difference
between validate and revalidate? Didn't have much time to dig into it
yet.

                                        Vladimir

Martin Anders wrote:
> 
> Hi Alex,
> 
> Vladimir gave me the right hint, after you added a new element to a list you have to
> call the revalidate method:
> 
> myList.revalidate();
> 
> You don't even have to call a firexxxx function() the revalidate() method adds and
> removes a scrollbar when needed, and shows new list entries. Thanx Vladimir.
> 
> Martin
> 
> Vladimir Olenin wrote:
> 
> > Hi, Alex,
> >
> > Actually, Martin gave u really good advice. Most of swing components do
> > not update their contents automatically. So, try do the following:
> > invalidate(), validate(), repaint(). But almost for sure u should call
> > some of firexxx() functions to let JList know it'd be repainted. This
> > works with JTable.
> >
> >                                    Vladimir
> >
--------------B76C78E948339D06A05C0FC0
Content-Type: text/x-vcard; charset=koi8-r;
 name="acidsteve.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Vladimir Olenin
Content-Disposition: attachment;
 filename="acidsteve.vcf"

begin:vcard
n:Olenin;Vladimir
x-mozilla-html:FALSE
org:
adr:
version:2.1
email;internet:acidsteve@hempseed.com
title:Card
note:Java programmer. Open for projects development offers.
fn:Vladimir Olenin
end:vcard


--------------B76C78E948339D06A05C0FC0--
Technical Details
Message-ID: <35E86B0E.CFD193ED@hempseed.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <35E2A7B4.B5EC3479@cimag.de> <35E2F53B.2269C0AA@csi.com> <35E3D07E.FA559753@cimag.de> <35E3EB20.E51998A5@ddsynergy.de> <35E4906C.71069691@hempseed.com> <35E57705.BFAD6B6C@ddsynergy.de>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,b5ee876fbd119f83
X-Google-Attributes: gid111d45,public
From: Vladimir Olenin <acidsteve@hempseed.com>
Subject: Re: JList with scrollbar
Date: 1998/08/30
Message-ID: <35E86B0E.CFD193ED@hempseed.com>
X-Deja-AN: 385984261
References: <35E2A7B4.B5EC3479@cimag.de> <35E2F53B.2269C0AA@csi.com> <35E3D07E.FA559753@cimag.de> <35E3EB20.E51998A5@ddsynergy.de> <35E4906C.71069691@hempseed.com> <35E57705.BFAD6B6C@ddsynergy.de>
X-Accept-Language: ru
Content-Type: multipart/mixed; boundary="------------B76C78E948339D06A05C0FC0"
Organization: Another Netscape Collabra Server User
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.swing