void () { final CardLayout cardLayout = (CardLayout)myPropertiesPanelWrapper.getLayout(); if (myCurrentPanel != null) { cardLayout.show(myPropertiesPanelWrapper, PROPERTIES_CARD); } else { cardLayout.show(myPropertiesPanelWrapper, EMPTY_CARD); } myPropertiesPanelWrapper.repaint(); }