From 5bf90be2d2f6bab95f23bf32b20b447cbfb75275 Mon Sep 17 00:00:00 2001 From: StevenLawson Date: Fri, 15 Aug 2014 22:23:57 -0400 Subject: [PATCH] Added icon - thanks WickedGamingUK! --- .../BukkitTelnetClient/BTC_MainPanel.java | 8 ++++++++ src/main/resources/icon.png | Bin 0 -> 1939 bytes 2 files changed, 8 insertions(+) create mode 100644 src/main/resources/icon.png diff --git a/src/main/java/me/StevenLawson/BukkitTelnetClient/BTC_MainPanel.java b/src/main/java/me/StevenLawson/BukkitTelnetClient/BTC_MainPanel.java index 79b0107..f94bddf 100644 --- a/src/main/java/me/StevenLawson/BukkitTelnetClient/BTC_MainPanel.java +++ b/src/main/java/me/StevenLawson/BukkitTelnetClient/BTC_MainPanel.java @@ -1,6 +1,7 @@ package me.StevenLawson.BukkitTelnetClient; import java.awt.Color; +import java.awt.Toolkit; import java.awt.event.KeyAdapter; import java.awt.event.KeyEvent; import java.io.BufferedReader; @@ -9,6 +10,7 @@ import java.io.File; import java.io.FileReader; import java.io.FileWriter; import java.io.IOException; +import java.net.URL; import java.util.LinkedList; import java.util.logging.Level; import java.util.regex.Pattern; @@ -44,6 +46,12 @@ public class BTC_MainPanel extends javax.swing.JFrame this.loadServerList(); + final URL icon = this.getClass().getResource("/icon.png"); + if (icon != null) + { + setIconImage(Toolkit.getDefaultToolkit().createImage(icon)); + } + this.setLocationRelativeTo(null); this.setVisible(true); } diff --git a/src/main/resources/icon.png b/src/main/resources/icon.png new file mode 100644 index 0000000000000000000000000000000000000000..c0e29eb805d7d7d5c5e47a869354b71396c0cb7b GIT binary patch literal 1939 zcmYjS3pmsJ8~+V6XJb^uERjSy=6+l5?MyR76iFq_C0VvK(cxqzmW`Y!EyapZ>om9A zk6S7vml0xyQBk3(+|M}kKhOVv{?GUOec#XXzTfBjywCUfyq`DakUL%hih=?Fpg?fO zc}aZi=8=xO@Q;TUJYJ{D=>Dk ze)RIE7?(cs)fQob@vE-H=i;rMV9{Z7l)y^dwQ;tYc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