void () { myErrorMessages.removeAll(); myErrorStack.setText(null); myLayeredPane.revalidate(); if (myHorizontalCaption != null) { myHorizontalCaption.update(); } if (myVerticalCaption != null) { myVerticalCaption.update(); } myLayout.show(myPanel, DESIGNER_CARD); }