Thursday, April 8, 2004 07:57 AM
You can use both methods, with the rule of thumb being how complex your protocol is. If all you need is to pass strings from one site to another - use sockets.
If you need some kind of complex bidirectional protocol, RMI is good for you.
You should also recall that RMI calls are performed in a separate thread, so you must use SwingUtilities.invokeLater() methods to update your Swing components.
Author of the RMI Plugin for Eclipse