Path: blob/master/Core/Support/Notification/Notification.java
1071 views
//ORIGINAL CREATOR: Luca Garofalo (Lucksi)1//AUTHOR: Luca Garofalo (Lucksi)2//Copyright (C) 2022-2023 Lucksi <[email protected]>3//License: GNU General Public License v3.045import java.awt.Dimension;6import java.awt.Toolkit;7import javax.swing.JDialog;8import javax.swing.JOptionPane;910public class Notification{11Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();1213public int GetWidht(){14int Value = 0;15Value = (int) screenSize.getWidth();16return Value;17}1819public int GetHight(){20int Value = 0;21Value = (int) screenSize.getHeight();22return Value;23}2425public Notification(){26int Width,Height ;27JOptionPane a = new JOptionPane("MR.HOLMES SCAN COMPLETED",JOptionPane.INFORMATION_MESSAGE);28JDialog d = a.createDialog(null);29Width = GetWidht();30Height = GetHight();31d.setLocation(Width,Height);32d.setVisible(true);33d.setTitle("MR.HOLMES");34d.setResizable(false);35d.dispose();36}37public static void main(String args[]){38new Notification();39}40}414243