void () { CardLayout applicationPlaceHolderLayout = (CardLayout)myApplicationPanelPlaceHolder.getLayout(); RemoteServer<?> account = getSelectedAccount(); boolean haveAccount = account != null; myApplicationPanelPlaceHolder.setVisible(haveAccount); if (!haveAccount) { return; } ServerType<?> cloudType = account.getType(); String cardName = cloudType.getId(); CloudApplicationConfigurable applicationConfigurable = getApplicationConfigurable(); if (myApplicationConfigurableTypes.add(cloudType)) { myApplicationPanelPlaceHolder.add(applicationConfigurable.getComponent(), cardName); } applicationPlaceHolderLayout.show(myApplicationPanelPlaceHolder, cardName); applicationConfigurable.setAccount(account); }