Block desktop until app running?
-
i was creating a new app and was thinking of creating an additional feature as to give additional security to lock all desktop components , and i never want to loose focus from app before one makes a login. So i tried this: 1. created a JFrame/JWindow to test made it pretty much workable by setting it always on top true & with fullscreen only. 2. fullscreen mode doesnt have any problem. But with a small frame in center when someone click out of it on desktop system looses its focus. 3. i tried all possible solutions as window deactivated event jframe focus lost etc. but they just acted one time, as you click out of it they will bring focus once again but after that on second click this thing doesn't work. 4. i googled and found this tutorial Lock Windows Desktop[^] but its in VB , Nothing in Java!??:confused: 5. i guess it would be nice to have an virtual desktop or something like above tutorial created in java, so i want suggestions is it possible in java as in many forums i read about java limitations over native codes i really want to going on it and putting such thing on sourceforge, if its possible in it. Regards Alok sharma
We always wonder what comes next and neglect what is available... :cool:
-
i was creating a new app and was thinking of creating an additional feature as to give additional security to lock all desktop components , and i never want to loose focus from app before one makes a login. So i tried this: 1. created a JFrame/JWindow to test made it pretty much workable by setting it always on top true & with fullscreen only. 2. fullscreen mode doesnt have any problem. But with a small frame in center when someone click out of it on desktop system looses its focus. 3. i tried all possible solutions as window deactivated event jframe focus lost etc. but they just acted one time, as you click out of it they will bring focus once again but after that on second click this thing doesn't work. 4. i googled and found this tutorial Lock Windows Desktop[^] but its in VB , Nothing in Java!??:confused: 5. i guess it would be nice to have an virtual desktop or something like above tutorial created in java, so i want suggestions is it possible in java as in many forums i read about java limitations over native codes i really want to going on it and putting such thing on sourceforge, if its possible in it. Regards Alok sharma
We always wonder what comes next and neglect what is available... :cool:
It is unliekly you will eb able to do this unless you call out to native window API's from the JVM. Not a good idea.
Panic, Chaos, Destruction. My work here is done. or "Drink. Get drunk. Fall over." - P O'H OK, I will win to day or my name isn't Ethel Crudacre! - DD Ethel Crudacre
-
i was creating a new app and was thinking of creating an additional feature as to give additional security to lock all desktop components , and i never want to loose focus from app before one makes a login. So i tried this: 1. created a JFrame/JWindow to test made it pretty much workable by setting it always on top true & with fullscreen only. 2. fullscreen mode doesnt have any problem. But with a small frame in center when someone click out of it on desktop system looses its focus. 3. i tried all possible solutions as window deactivated event jframe focus lost etc. but they just acted one time, as you click out of it they will bring focus once again but after that on second click this thing doesn't work. 4. i googled and found this tutorial Lock Windows Desktop[^] but its in VB , Nothing in Java!??:confused: 5. i guess it would be nice to have an virtual desktop or something like above tutorial created in java, so i want suggestions is it possible in java as in many forums i read about java limitations over native codes i really want to going on it and putting such thing on sourceforge, if its possible in it. Regards Alok sharma
We always wonder what comes next and neglect what is available... :cool:
well, you can fire some OS Commands through the java.lang.runtime[^] it might be possible to use it. But I don't think you can block the native OS so much, that it doesn't react. Some call it a safety barrier - some call it a limitation. regards Torsten
I never finish anyth...
-
i was creating a new app and was thinking of creating an additional feature as to give additional security to lock all desktop components , and i never want to loose focus from app before one makes a login. So i tried this: 1. created a JFrame/JWindow to test made it pretty much workable by setting it always on top true & with fullscreen only. 2. fullscreen mode doesnt have any problem. But with a small frame in center when someone click out of it on desktop system looses its focus. 3. i tried all possible solutions as window deactivated event jframe focus lost etc. but they just acted one time, as you click out of it they will bring focus once again but after that on second click this thing doesn't work. 4. i googled and found this tutorial Lock Windows Desktop[^] but its in VB , Nothing in Java!??:confused: 5. i guess it would be nice to have an virtual desktop or something like above tutorial created in java, so i want suggestions is it possible in java as in many forums i read about java limitations over native codes i really want to going on it and putting such thing on sourceforge, if its possible in it. Regards Alok sharma
We always wonder what comes next and neglect what is available... :cool:
-
Description doesn't make much sense unless you are creating a kiosk/cash register type of application. If that is what you want then you are going to need to do some work in something besides java. You can research how by researching 'kiosk' techniques.
well i have heard it first time ('kiosk technique') so i will look into that.......