SUN used this snippet to show the corect way to create new UI Swing components. According to SUN this is so that the Milestone events like init, stop etc. will be placed on the event-dispatching
thread used by the browser.
If I wanted to add a button, do I insert a new JButton in the createGUI function ?
Also I am developing in Eclipse, and when I create a new Japplet and added a new button component in Eclipse, the code generator does not adhere to the example above. Does this mean that the code generated in Eclipse is not kosher/threadsafe?
ie.
What are the 2 differences in both implementations, and which would you follow in your development?
[ September 16, 2005: Message edited by: sophyan julio ]