1 package tim.prune.function;
3 import javax.swing.JOptionPane;
6 import tim.prune.GenericFunction;
7 import tim.prune.I18nManager;
8 import tim.prune.function.browser.BrowserLauncher;
11 * Class to show a simple help screen
13 public class HelpScreen extends GenericFunction
17 * @param inApp app object
19 public HelpScreen(App inApp)
27 public String getNameKey() {
28 return "function.help";
32 * Show the help screen
36 // show the dialog and offer to open home page
37 Object[] buttonTexts = {I18nManager.getText("button.showwebpage"), I18nManager.getText("button.cancel")};
38 if (JOptionPane.showOptionDialog(_parentFrame, I18nManager.getText("dialog.help.help"),
39 I18nManager.getText("function.help"), JOptionPane.YES_NO_OPTION,
40 JOptionPane.INFORMATION_MESSAGE, null, buttonTexts, buttonTexts[1])
41 == JOptionPane.YES_OPTION)
43 // User selected to launch home page
44 BrowserLauncher.launchBrowser("https://activityworkshop.net/software/gpsprune/index.html");