initial commit

master
Michel Roux 4 years ago
commit e1588c9228
  1. 3
      .gitignore
  2. 12
      .idea/artifacts/Symantec.xml
  3. 3
      META-INF/MANIFEST.MF
  4. 11
      Symantec.iml
  5. BIN
      res/Capture.PNG
  6. 21
      src/Symantec.java

3
.gitignore vendored

@ -0,0 +1,3 @@
out/
.idea/*
!.idea/artifacts/

@ -0,0 +1,12 @@
<component name="ArtifactManager">
<artifact type="jar" name="Symantec">
<output-path>$PROJECT_DIR$/out/artifacts/Symantec</output-path>
<root id="archive" name="Symantec.jar">
<element id="directory" name="META-INF">
<element id="file-copy" path="$PROJECT_DIR$/META-INF/MANIFEST.MF" />
</element>
<element id="module-output" name="Symantec" />
<element id="dir-copy" path="$PROJECT_DIR$/res" />
</root>
</artifact>
</component>

@ -0,0 +1,3 @@
Manifest-Version: 1.0
Main-Class: Symantec

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

@ -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();
}
}
}
Loading…
Cancel
Save