🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Problemas con JList

#25762
From: Jos� Antonio P�rez Testa
Date: Tue, 02 Mar 1999 00:00
79 lines
3190 bytes
This is a multi-part message in MIME format.
--------------19D4416C5A622244C884E4B5
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit

Mil perdones....
Este m�todo solo se puede llamar desde una subclase de AbstractListModel. Yo lo
utilizo porque implemento mi propio ModeloDeJList.
Para que se refresque prueba lo que dice el colega Socram,
o llama a invalidate(); validate(); sobre el contenedor...

>protected void fireContentsChanged(java.lang.Object source,
>                                   int index0,
>                                   int index1)
>
>AbstractListModel subclasses must call this method after one or more elements of the
list change.




Jos� Antonio P�rez Testa wrote:

> Tienes que llamar a esta funcion sobre la JList cuando a�ades los elementos para
> que la Vista se entere de que su modelo ha cambiado y se refresque
> JList miJList;
> ----
> -.--
> miJList.getModel().fireContentsChanged(-,-,-);
>
> Los par�metros te los curras t� �vale?
>
> gcanales wrote:
>
> > �Alguien me podr�a decir como generar el evento del doble click sobre un
> > item de una JList, como si se tratase de una List de AWT.???
> >
> > Otra cosa, rela cionada con el mismo tema. Tengo un applet en el que
> > utilizo alguna JList, pero al introducir los items en ella (son
> > recuperados de Base de Datos), no se me refresca la pantalla y no
> > aparecen, hasta
> > que no hago algo sobre ella.
> >
> > Muchas gracias.
>
>   --------------------------------------------------------------------------------
>
>   Jos� Antonio P�rez Testa <testa@polar.es>
>   Grupo Polar
>
>   Jos� Antonio P�rez Testa
>   Grupo Polar  <testa@polar.es>
>                Work: 91-515 37 88
>                Netscape Conference Address
>                Netscape Conference DLS Server
>   Additional Information:
>   Last Name
>   First NameJos� Antonio P�rez Testa
>   Version   2.1must call this method after one or more elements of the list change.

--------------19D4416C5A622244C884E4B5
Content-Type: text/x-vcard; charset=us-ascii; name="vcard.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Jos� Antonio P�rez Testa
Content-Disposition: attachment; filename="vcard.vcf"

begin:          vcard
fn:             Jos� Antonio P�rez Testa
n:              ;Jos� Antonio P�rez Testa
org:            Grupo Polar
email;internet: testa@polar.es
tel;work:       91-515 37 88
x-mozilla-cpt:  ;0
x-mozilla-html: FALSE
version:        2.1
end:            vcard


--------------19D4416C5A622244C884E4B5--
Technical Details
Message-ID: <36DC21C4.4B915FB1@polar.es>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <36DA51D4.AB87AB9C@a01-unix.gsyc.inf.uc3m.es> <36DAD4D4.41084583@polar.es>

Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII
X-Google-Thread: 1116f3,9537e101e52319c2
X-Google-Attributes: gid1116f3,public
From: "Jos� Antonio P�rez Testa" <testa@polar.es>
Subject: Re: Problemas con JList
Date: 1999/03/02
Message-ID: <36DC21C4.4B915FB1@polar.es>
X-Deja-AN: 450442132
References: <36DA51D4.AB87AB9C@a01-unix.gsyc.inf.uc3m.es> <36DAD4D4.41084583@polar.es>
Content-Type: multipart/mixed; boundary="------------19D4416C5A622244C884E4B5"
Organization: Grupo Polar
Mime-Version: 1.0
Newsgroups: es.comp.lenguajes.java