This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
I'm trying to do an application where if i login then all the app running in windows should get closed automatically except the browser(with only the current tab ,other tab should be closed automatically) and the browser has to come in full screen, only escape and close button in the app will close the app. No other event can interrupt or close this app?
Telling simply , i want to do like the dev square app
There aren't any classes in the standard Java API which allow you to interfere with other applications. You may find low-level APIs for the operating system you were thinking of, in which case you could call those APIs via JNI or JNA interfaces.
At some point you'll need to revert to native code in order to interact to the other apps running on your desktop. You can read up on JNI and javah. Basically the low-level system handling - i.e. the part where your app closes all the other apps running on the desktop - will have to be done in a custom written C library (for instance in a DLL file). Then you tie your Java code to this DLL file; for instance in your Java code you create a method that calls the new function in your C library that handles the closing of all other apps on your desktop.