Changed tengwar text to non-italic
This commit is contained in:
parent
d411486bd7
commit
5545ca7548
|
@ -49,7 +49,7 @@
|
|||
<component id="952a" class="javax.swing.JTextArea" binding="tengwarTextArea" custom-create="true">
|
||||
<constraints/>
|
||||
<properties>
|
||||
<font name="Tengwar Annatar" size="16" style="2"/>
|
||||
<font name="Tengwar Annatar" size="16" style="0"/>
|
||||
<lineWrap value="true"/>
|
||||
<wrapStyleWord value="true"/>
|
||||
</properties>
|
||||
|
|
|
@ -83,17 +83,7 @@ public class Window {
|
|||
importButton.addActionListener(new ActionListener() {
|
||||
@Override
|
||||
public void actionPerformed(ActionEvent e) {
|
||||
if (Desktop.isDesktopSupported()){
|
||||
if (Desktop.getDesktop().isSupported(Desktop.Action.BROWSE)){
|
||||
try {
|
||||
Desktop.getDesktop().browse(new URI("https://www.youtube.com/watch?v=lsJLLEwUYZM"));
|
||||
} catch (IOException e1) {
|
||||
e1.printStackTrace();
|
||||
} catch (URISyntaxException e1) {
|
||||
e1.printStackTrace();
|
||||
}
|
||||
}
|
||||
}
|
||||
onImportClicked();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
@ -135,4 +125,21 @@ public class Window {
|
|||
tengwarTextArea.setText(Translator.translateToTengwar(inputTextArea.getText()));
|
||||
}
|
||||
|
||||
/**
|
||||
* What to do if the user clicks the 'import' button.
|
||||
*/
|
||||
private void onImportClicked(){
|
||||
if (Desktop.isDesktopSupported()){
|
||||
if (Desktop.getDesktop().isSupported(Desktop.Action.BROWSE)){
|
||||
try {
|
||||
Desktop.getDesktop().browse(new URI("https://www.youtube.com/watch?v=lsJLLEwUYZM"));
|
||||
} catch (IOException e1) {
|
||||
e1.printStackTrace();
|
||||
} catch (URISyntaxException e1) {
|
||||
e1.printStackTrace();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue