The Artima Developer Community
Sponsored Link

Java Buzz Forum
Swing Listeners and Threads

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Scott Delap

Posts: 1154
Nickname: scottdelap
Registered: Sep, 2004

Client / Server application developer.
Swing Listeners and Threads Posted: May 23, 2005 12:58 PM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by Scott Delap.
Original Post: Swing Listeners and Threads
Feed Title: ClientJava.com
Feed URL: http://www.clientjava.com/archives/wireless_mobile.rdf
Feed Description: Client/Desktop Related Java Development
Latest Java Buzz Posts
Latest Java Buzz Posts by Scott Delap
Latest Posts From ClientJava.com

Advertisement

Swing Listeners and Threads
How do you listen? I end up writing a couple of the addListenerX(), removeListenerX(), fireEventX() patterns every day almost. There are a couple of ways around to implement this with an ArrayList or maybe a HashSet or the AWTEventMulticaster. Generaly I have ended up with one of the first two for ease of implementation. A couple days a go I got the dreaded ConcurrentModificationException which when traced down was caused buy a well known problem of trying to add/remove a listener from inside the fire event method. AWTEventMulticaster is one possible solution checkout Java World Article for an example...

Read: Swing Listeners and Threads

Topic: Links for 2005-05-16 [del.icio.us] Previous Topic   Next Topic Topic: Sun and Microsoft sitting in a tree....

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use