Wow... that actually fixes it. Still a minor problem, since according
to the Sun website, it is legal to create a Swing object in another
thread as long as long as it is not "realized" yet...

Still, this definitely is a doable workaround. Thanks!

-Luke

On Dec 29, 9:17 pm, Rowdy Rednose <rowdy.redn...@gmx.net> wrote:
> What if you run the Swing code in the Event Dispatch Thread?
>
> In other words, does this:
>
> (. javax.swing.SwingUtilities (invokeAndWait #(.
> javax.swing.JOptionPane (showMessageDialog nil "Hello World"))))
>
> or
>
> (. javax.swing.SwingUtilities (invokeLater #(. javax.swing.JOptionPane
> (showMessageDialog nil "Hello World"))))
>
> work for you?
>
> On 20 Dez., 06:06, Daniel Eklund <doekl...@gmail.com> wrote:
>
> > > Anyone have any ideas? I'm pretty confused as to what might be going
> > > on. Some sort of deadlock in the thread pool that isn't allowing the
> > > AWT event thread any cycles? I'm looking at the thread pool in JSwat
> > > and I see a lot of Swank threads, but I can't tell exactly what's
> > > going on.
>
> > I literally just had this problem today.  I was having slime hang on
> > me with _any_ swing code.  So I tried the basic repl and even the most
> > basic
>
> > (. javax.swing.JOptionPane (showMessageDialog nil "Hello World"))
>
> > and even this was failing.  Spent an hour svn updating, etc.
>
> > Finally, I clicked on the system icon tray at the bottom right of XP
> > and noticed that that the stupid Java download manager wanted me to
> > update.  I let it download whatever patch it wanted and then suddenly
> > everything worked.
>
> > It could be coincidental.  But I am telling you just in case.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To post to this group, send email to clojure@googlegroups.com
To unsubscribe from this group, send email to 
clojure+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to