Getting Network Status notification in java application
I am developing an Java application where I want to keep watch of various status of Windows OS. like
1- Network status - Network connected, Disconnected, Network has Internet, Wifi connection.
2- Computer screen status- When PC screen lock, unlock, screen_saver start.etc.
I know there is something like Register and getting event (notification) from Windows for above action, but i am unable to find.
Will any one of you will help me?
Thanks in Advance.