🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

JList Renderer causing hangs

#11234
From: Jon
Date: Wed, 30 Jun 1999 00:00
20 lines
1596 bytes
Hello,
  I am attempting to create a JList that sets an icon to a label, based
upon the label.  I have successfully implemented a ListRenderer, and
everything is fine if the renderer is using local or simple icons.
  I am having problems when the renderer has to download the icon (from
a server).  When this happens (and it is not reliable), the entire
applet hangs.  If I am in a browser, the browser is gone, if I am using
applet viewer, the frame, applet, and OS box are hung.  
  I can comment out the setIcon( icon ), the hang does not occur.  I am
not getting an npe, as I am checking for that.
  The weird behavior, though, is that the applet doesn't hang inside the
ListCellRenderer, it hangs after it has finished.  I've put trace
statements before, in, and after the renderer.  Sometimes, it goes
through the list fine (about 6 elements).  Othertimes, within the first
2 elements, the renderer is called three times, then the applet hangs.
  
  BTW, the 'hang' results in the applet not re-painting - only the frame
is restored when brought to the foreground.

Any ideas?
Technical Details
Message-ID: <377ACD5C.55E4E2D2@starsnaliens.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,ad3c1366e0710472,start
X-Google-Attributes: gid111d45,public
From: Jon <hyspeed@starsnaliens.com>
Subject: JList Renderer causing hangs
Date: 1999/06/30
Message-ID: <377ACD5C.55E4E2D2@starsnaliens.com>
X-Deja-AN: 495850070
Content-Transfer-Encoding: 7bit
Organization: Another Netscape Collabra Server User
Content-Type: text/plain; charset=us-ascii
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.swing