Friday, December 27, 2002


Associative Swing Models.

I've been continuing work on the associative models in between major coughing episodes (picked up some kind of virus).  My OneToMany association wants to be a Swing tree model, so I've been building that today.  Initial implementation is complete and really isn't all that difficult, except for the threading issues.  I'm not allowed to push events out to Swing on anything but the UI thread, so I relay all association events into the UI thread.  They're converted into events there.  There's a collapsing problem, though -- if a number of events pile up before they're processed, the early events may be referring to objects that no longer exist in the tree, or have moved to new locations. 

Some kind of general event consumer is necessary -- one that can suck in the queued events and emit an appropriate set of events to the JTree (or whatever).  While this is happening the model can change again, of course...I think I need to lock it down with a read lock while I'm emitting the swing events, then release it when I'm done. 

Thanks to Doug Lea for the super cool concurrency packages.  I think they're going to save me again.


11:18:52 PM    

Bleeps are Better.

The cool thing about watching the Osbournes on a french channel is that they leave all the swearing in.  It's all there -- every f&# and s#$t is said in glowing technicolor, and carefully translated into the equivalent french Canadian religious swearword equivalent.  Fun! 

After having subjected myself to two shows in a row, I was forced to conclude that it's actually funnier with the bleeps.  Some of the things these kids say to their parents and vice versa are pretty, uh, disturbing?  Bleeps are better.


11:14:22 PM