void () { myPortPanel.setVisible(isSocket()); myShMemPanel.setVisible(!isSocket()); myAddressField.setEditable(!myIsLocal); mySocketTransport.setEnabled(!myIsLocal); myShmemTransport.setEnabled(!myIsLocal); }