Explore BrainMass

components of this code

Can you explain the components of this code for me?

javax.swing.SwingUtilities.invokeLater(new Runnable() {
public void run() {
new testEvents();

Basically, when I read this code, I just want to know how it works, what
it does, when would I use this, would I use it every time, etc.


Solution Preview

The method ijavax.swing.SwingUtilities.invokeLater accepts a Runnable object. This method is to start a seperate thread for the Runnable object. In the above code, it uses anonymous inner class. To ...

Solution Summary

This job explicates components of this code.