void (String target) { myPreviewTarget = target; retrieveExistingValue(); ((CardLayout)myPreviewPanel.getLayout()).show(myPreviewPanel, myPreviewTarget); if (EDITOR.equals(myPreviewTarget)) { myEditorPreview.updateView(); } updatePreview(); }