From b894c679009170005564e8b4eaef2fa2c5cb7384 Mon Sep 17 00:00:00 2001 From: Andrew Lalis Date: Tue, 25 Apr 2017 08:31:57 +0200 Subject: [PATCH] fixed PDF issue and updated TODO List --- README.md | 3 +-- src/net/agspace/Window.java | 8 ++++---- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 1b01721..f770c1e 100644 --- a/README.md +++ b/README.md @@ -18,5 +18,4 @@ Since Tengwar is inherently a phonetic script, converting english to Tengwar wou ### To-Do List * Implement s-curls. -* Find a way to display the PDF manual in the UI. - +* Add more text editing options, like color, italics, bold, indentation, and so on... diff --git a/src/net/agspace/Window.java b/src/net/agspace/Window.java index ae458b0..107dba7 100644 --- a/src/net/agspace/Window.java +++ b/src/net/agspace/Window.java @@ -188,10 +188,10 @@ public class Window { */ public void onEnglishModeAboutClicked(){ if (Desktop.isDesktopSupported()){ - try { - Desktop.getDesktop().open(new File(this.getClass().getClassLoader().getResource("resources/EnglishOnetoOneTengwarV2-1.pdf").getFile())); - } catch (IOException e1) { - e1.printStackTrace(); + try{ + Desktop.getDesktop().browse(new URI("https://github.com/andrewlalis/TengwarTranslator/blob/master/src/resources/EnglishOneToOneTengwarV2-1.pdf")); + } catch (URISyntaxException | IOException e){ + e.printStackTrace(); } } }