I tried to make a listener for helpMenuItem,but it doesnt work ,when I press the key F1,Whats wrong in the code?
HelpBroker hb = null;
hb = hs.createHelpBroker();
hb.enableHelpKey(frm.getRootPane(),"tut.starttoc",hs);
ActionListener help = new CSH.DisplayHelpFromSource(hb);
menuItem.addActionListener(help);
HelpBroker hb = null;
hb = hs.createHelpBroker();
hb.enableHelpKey(frm.getRootPane(),"tut.starttoc",hs);
ActionListener help = new CSH.DisplayHelpFromSource(hb);
menuItem.addActionListener(help);