/** Updates description to reflect the one associated with given object. * @param obj object */ private void updateDescription (DataObject obj) { java.net.URL url = null; if (obj != null) { url = TemplateWizard.getDescription (obj); } java.awt.CardLayout card = (java.awt.CardLayout)browserPanel.getLayout(); if (url != null && getExplorerManager().getSelectedNodes().length != 0) { if (browser != null) { browser.setURL(url); if (!browser.isVisible()) { card.show (browserPanel, "browser"); // NOI18N } } } else { card.show (browserPanel, "noBrowser"); // NOI18N } }