fixed PDF issue and updated TODO List

This commit is contained in:
Andrew Lalis 2017-04-25 08:31:57 +02:00
parent 4cd1597d7b
commit b894c67900
2 changed files with 5 additions and 6 deletions

View File

@ -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...

View File

@ -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();
}
}
}