From 5e2d7f5800adf04422eae56e41e7c3187d0bb252 Mon Sep 17 00:00:00 2001 From: Andrew Lalis Date: Sun, 23 Apr 2017 16:03:34 +0200 Subject: [PATCH] Added icons to the main window and buttons. --- src/net/agspace/Main.java | 2 ++ src/net/agspace/Window.form | 17 ++++++++++------- src/resources/clear.png | Bin 0 -> 396 bytes src/resources/toEnglish.png | Bin 0 -> 354 bytes src/resources/toTengwar.png | Bin 0 -> 353 bytes 5 files changed, 12 insertions(+), 7 deletions(-) create mode 100644 src/resources/clear.png create mode 100644 src/resources/toEnglish.png create mode 100644 src/resources/toTengwar.png diff --git a/src/net/agspace/Main.java b/src/net/agspace/Main.java index 2816e7c..11f874a 100644 --- a/src/net/agspace/Main.java +++ b/src/net/agspace/Main.java @@ -13,9 +13,11 @@ import java.awt.*; public class Main { public static final String TITLE = "Tengwar Typewriter"; + public static final String ICON_PATH = "resources/icon.png"; public static void main(String[] args){ JFrame f = new JFrame(TITLE); + f.setIconImage(Toolkit.getDefaultToolkit().createImage(ClassLoader.getSystemResource(ICON_PATH))); f.setContentPane(new Window().getMainPanel()); f.pack(); f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); diff --git a/src/net/agspace/Window.form b/src/net/agspace/Window.form index 1b130e4..3ec58f2 100644 --- a/src/net/agspace/Window.form +++ b/src/net/agspace/Window.form @@ -3,7 +3,7 @@ - + @@ -140,8 +140,9 @@ - @@ -150,8 +151,9 @@ - @@ -169,8 +171,9 @@ - diff --git a/src/resources/clear.png b/src/resources/clear.png new file mode 100644 index 0000000000000000000000000000000000000000..ab30f2ccee5b7790a46e088b3ee695a3c5d212e1 GIT binary patch literal 396 zcmeAS@N?(olHy`uVBq!ia0vp^CO|CD!3HE(2)~m9QY`6?zK#qG8~eHcB(eheoCO|{ z#S9F52SJ!|$HeTnKtah8*NBqf{Irtt#G+J&g2c?c61}|C5(N`I13g1Cm(2BF85kHj zJzX3_BHXX`a|$&p2(bM9znnK?gV?2uiLo}jRx4?jd zoA0qr?fe$B!eKpY)Mh?*y)*stw`v`oSvYrD{rcC> z_bl7x*qw4S`$pWYy?fWWf0(7!X8TNN;;iD;)ggvoZiz%a%Mw#cCCt>B2l$;5iY5;|Blt&uZwKMH)}W>v@cyaZ}m;d_7Aoeyth?P$DFN_>D#Hn z`!(k5w>>h&g>@y-`?dq!|LK>+ikSZXmM*!U87n@_Ti?*NeIMVi&NmgyUNY~ym8kRM TkoYWM$T4`j`njxgN@xNAbY`LQ literal 0 HcmV?d00001 diff --git a/src/resources/toEnglish.png b/src/resources/toEnglish.png new file mode 100644 index 0000000000000000000000000000000000000000..6ab65016b3f9e22e5bc07333e50057963d770ca5 GIT binary patch literal 354 zcmeAS@N?(olHy`uVBq!ia0vp^CO|CD!3HE(2)~m9QY`6?zK#qG8~eHcB(eheoCO|{ z#S9F52SJ!|$HeTnKtah8*NBqf{Irtt#G+J&g2c?c61}|C5(N`I13g1Cm(2BFfr{>X zx;TbJxWBz(%hhZkajdZ2C-Txo-+l#_O|Jy2rrbMl?~L+S4l~VKuB2Nv8c%DT<$g3r zI@NXi#>UQ^y=02__0r3~&(!g4+U3<)>(F7H!|oK581L92t;69IlW|Fp00i_>zopr0NhoG^#A|> literal 0 HcmV?d00001 diff --git a/src/resources/toTengwar.png b/src/resources/toTengwar.png new file mode 100644 index 0000000000000000000000000000000000000000..d6b72765a6b053b8185546588927d2bc6c8f9cf5 GIT binary patch literal 353 zcmeAS@N?(olHy`uVBq!ia0vp^CO|CD!3HE(2)~m9QY`6?zK#qG8~eHcB(eheoCO|{ z#S9F52SJ!|$HeTnKtah8*NBqf{Irtt#G+J&g2c?c61}|C5(N`I13g1Cm(2BFfr{>V zx;TbJxWB#T&2`8?r1c?>(J2)^WAAASEJnH09|YZT+-*GliBMLJjDVE0eCIvwpAQ{0 zH0nwcTvmTgkIb%KdPP<4_jBQ8dmWcuuV@kyn74q31hj@(cETk$$!7 z-GZ%hl7}uSgm9bP0l+XkKps;?~ literal 0 HcmV?d00001