Added Icon

This commit is contained in:
mmk2410 2015-01-02 23:17:18 +01:00
parent 36ca7f81d3
commit d82ba783ae
11 changed files with 3 additions and 92 deletions

View file

@ -63,7 +63,7 @@ public class Morse extends JFrame {
/**
* Launch the application.
*/
public static void main(String[] args) {
public static void main(String[] args){
EventQueue.invokeLater(new Runnable() {
public void run() {
try {
@ -80,6 +80,7 @@ public class Morse extends JFrame {
* Create the frame.
*/
public Morse() {
setIconImage(Toolkit.getDefaultToolkit().getImage(Morse.class.getResource("/de/marcel_kapfer/c/morseconverter/icon.png")));
setResizable(false);
setTitle("Morse Converter");
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);