JavaFX: The Hidden Threading Rule
2008年08月13日 21:10 • 查看 8 次 • 打印本文
The following post is the result of my latest JavaFx Script experiments mixed with Stu’s Java.Next series (1,2). Alright, so Stu decides to showcase how the Java.next languages interop with Java the language, and to do so he chose a Swing based example. Though he did a great job covering each transformation from the original Java example to each of the Java.next candidates, the original example has a slight flaw: it doesn’t honor Sun’s guidelines for building Swing apps, mainly when creating components and/or changing a component’s UI state you must do it inside the Event Dispatch Thread.
评论
发表评论