Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Java
  4. Block desktop until app running?

Block desktop until app running?

Scheduled Pinned Locked Moved Java
questionc++javacomsecurity
5 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Alok Sharma ji
    wrote on last edited by
    #1

    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:

    N T J 3 Replies Last reply
    0
    • A Alok Sharma ji

      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:

      N Offline
      N Offline
      Nagy Vilmos
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      • A Alok Sharma ji

        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:

        T Offline
        T Offline
        TorstenH
        wrote on last edited by
        #3

        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...

        1 Reply Last reply
        0
        • A Alok Sharma ji

          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:

          J Offline
          J Offline
          jschell
          wrote on last edited by
          #4

          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.

          A 1 Reply Last reply
          0
          • J jschell

            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.

            A Offline
            A Offline
            Alok Sharma ji
            wrote on last edited by
            #5

            well i have heard it first time ('kiosk technique') so i will look into that.......

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups