commit e1588c92283a00595d1e98134f7e6c219011b798 Author: Michel Roux Date: Sat Sep 29 20:05:42 2018 +0200 initial commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..070dc75 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +out/ +.idea/* +!.idea/artifacts/ diff --git a/.idea/artifacts/Symantec.xml b/.idea/artifacts/Symantec.xml new file mode 100644 index 0000000..83236ae --- /dev/null +++ b/.idea/artifacts/Symantec.xml @@ -0,0 +1,12 @@ + + + $PROJECT_DIR$/out/artifacts/Symantec + + + + + + + + + \ No newline at end of file diff --git a/META-INF/MANIFEST.MF b/META-INF/MANIFEST.MF new file mode 100644 index 0000000..e7a1bfd --- /dev/null +++ b/META-INF/MANIFEST.MF @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +Main-Class: Symantec + diff --git a/Symantec.iml b/Symantec.iml new file mode 100644 index 0000000..c90834f --- /dev/null +++ b/Symantec.iml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/res/Capture.PNG b/res/Capture.PNG new file mode 100644 index 0000000..0768801 Binary files /dev/null and b/res/Capture.PNG differ diff --git a/src/Symantec.java b/src/Symantec.java new file mode 100644 index 0000000..794b2e0 --- /dev/null +++ b/src/Symantec.java @@ -0,0 +1,21 @@ +import javax.imageio.ImageIO; +import java.awt.*; +import java.awt.image.BufferedImage; + +public class Symantec { + public static void main(String[] args) { + Symantec symantec = new Symantec(); + symantec.load(); + } + + private void load() { + try { + BufferedImage img = ImageIO.read(getClass().getResourceAsStream("Capture.PNG")); + TrayIcon trayIcon = new TrayIcon(img, "Symantec"); + SystemTray tray = SystemTray.getSystemTray(); + tray.add(trayIcon); + } catch (Exception e) { + e.printStackTrace(); + } + } +}