- Status
- Offline
- Joined
- Jul 18, 2023
- Messages
- 707
- Reaction score
- 3
Download "PushUtils" right now and plunge into an exciting adventure that will change your idea of games. We are waiting for you in a world where reality and fantasy mix in a harmonious dance of freedom and creativity. Get ready for unforgettable emotions and exciting challenges – your adventure begins right now!
PushUtils:
JavaScript:import java.awt.AWTException; import java.awt.Image; import java.awt.SystemTray; import java.awt.Toolkit; import java.awt.TrayIcon; import java.awt.TrayIcon.MessageType; public class PushUtils { public static boolean sendPush(String title, String message) throws AWTException { if (SystemTray.isSupported()) { PushUtils td = new PushUtils(); td.displayTray(title, message); return true; } else { return false; } } public void displayTray(String title, String message) throws AWTException { SystemTray tray = SystemTray.getSystemTray(); Image image = Toolkit.getDefaultToolkit().createImage("Warning.png"); TrayIcon trayIcon = new TrayIcon(image, "Tray Warning"); trayIcon.setImageAutoSize(true); trayIcon.setToolTip("System tray icon Warning"); tray.add(trayIcon); trayIcon.displayMessage(title, message, MessageType.INFO); } }