Skip to content

Commit 37db555

Browse files
committed
updated from desktop.browse() to Platform.openURL()
1 parent f4d8557 commit 37db555

File tree

1 file changed

+2
-18
lines changed

1 file changed

+2
-18
lines changed

java/src/processing/mode/java/JavaEditor.java

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -332,28 +332,12 @@ public JMenu buildHelpMenu() {
332332

333333
// Report a bug link opener
334334
item = new JMenuItem(Language.text("menu.help.report"));
335-
item.addActionListener(e -> {
336-
Desktop desktop = java.awt.Desktop.getDesktop();
337-
try {
338-
URI oURL = new URI(Language.text("menu.help.report.url"));
339-
desktop.browse(oURL);
340-
} catch (IOException | URISyntaxException ex) {
341-
throw new RuntimeException(ex);
342-
}
343-
});
335+
item.addActionListener(e -> Platform.openURL(Language.text("menu.help.report.url")));
344336
menu.add(item);
345337

346338
// Ask on the Forum link opener
347339
item = new JMenuItem(Language.text("menu.help.ask"));
348-
item.addActionListener(e -> {
349-
Desktop desktop = java.awt.Desktop.getDesktop();
350-
try {
351-
URI oURL = new URI(Language.text("menu.help.ask.url"));
352-
desktop.browse(oURL);
353-
} catch (IOException | URISyntaxException ex) {
354-
throw new RuntimeException(ex);
355-
}
356-
});
340+
item.addActionListener(e -> Platform.openURL(Language.text("menu.help.getting_started.url")));
357341
menu.add(item);
358342

359343
menu.addSeparator();

0 commit comments

Comments
 (0)