URL url = HelpSet.findHelpSet(cl, "jhelpset.hs"); helpViewer = new JHelp(new HelpSet(cl, url)); helpViewer.setCurrentID("Simple.Introduction"); } catch (Exception e)
/** * Show in the current dialog the entry (if any) corresponding to the * specified id. * * @param id */ private static void showID(String id) { getInstance(); if (dialog == null) { dialog = createDialog(null); } dialog.setVisible(true); if (!HelpCollator.isEmptyHelp()) { jhelp.setCurrentID(id); } }
public void actionPerformed(java.awt.event.ActionEvent event) { try { JHelp help = (JHelp)getControl(); HelpSet hs = help.getModel().getHelpSet(); Map.ID homeID = hs.getHomeID(); Locale locale = hs.getLocale(); String string = HelpUtilities.getString(locale, "history.homePage"); help.setCurrentID(homeID, string, help.getCurrentNavigator()); } catch (Exception e) { } } }