2009-04-15 04:48:06 UTC
Oh good. I'll try that. :) All of my GUI manipulation is in the ProcedureEditor constructor, so I'll put a call to that in run() above.
That is a bit ugly code though. It's AWT so I suppose that makes sense. I don't like creating anonymous inner classes inside a parameter lists (and just to run a single function). Perhaps in keeping with the spirit of Buoy, Buoy could wrap that functionality and make it nicer? Maybe add a invokeLater function to the appropriate class that takes a function name and runs the function in the event thread at the appropriate time. Let me know if you like the idea and I should put it on the tracker. Seems like this sort of thing would get used for a lot of programs (any that wants a centered main window, for starters).
Thanks again!
- John