• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 398
  • Last Modified:

Prohibit access to the windows desktop

I need ideas on how to make a Java application running in a Windows environment to always be the active application, and also stay on top of other windows... i.e. the users should not be able to access the desktop behind, or switch to any other applications...

One person told me to have a look at an application called "GiveWinFocus.exe", but I'd like to hear more ideas on how this can be achieved, and what solution might be the best...

regards
Hypo
0
Hypo
Asked:
Hypo
  • 3
  • 2
  • 2
  • +1
2 Solutions
 
colr__Commented:
This can be achieved natively in java without external apps. Add a focus listener to your JFrame - when focus is lost, give it focus again, which effectivly keeps it on top at all times since it can never lose focus.
0
 
objectsCommented:
0
 
HypoAuthor Commented:
It's important that the user should not be able press ALT + TAB to switch application, or in any other way get access to the desktop and file system (CTRL+ALT+DELETE); and I guess running it in full screen mode would still allow the user to still switch application using ALT+TAB...

I've heard about the focus solution before, and that might be a way forward...  however I would still like to hear if there are any other ideas...

perhaps I should extend this question to the Windows-area as well; If there might be a way to configure the OS for a specific windows user, so that the desktop can not be accessed. (The users that are intended to use this application will belong to specific windows user groups).
0
Cloud Class® Course: MCSA MCSE Windows Server 2012

This course teaches how to install and configure Windows Server 2012 R2.  It is the first step on your path to becoming a Microsoft Certified Solutions Expert (MCSE).

 
CEHJCommented:
You can only do what you want to do (i.e. prevent any subversion by the user) by running the OS in what's known as 'kiosk mode'. That would probably be a specialized version of Windows.
You could run the app using a OSS ramdisk OS running in kiosk mode
0
 
HypoAuthor Commented:
Kiosk mode seems like what I'm looking for... I'll look into it...

/Hypo
0
 
CEHJCommented:
:)

If you organise things carefully, and your use case is appropriate, you can put together a live kiosk OS on disk (say usb key) that has just your app and the bare minimum of anything else
0
 
HypoAuthor Commented:
That seems nice... :)
however, I'm working on quite a large project with lots of requirements and other developers involved, so I can't really take the freedom to change anything big... just have to stick to the requirements and do my parts as best I can... like any good code monkey would :D

thanks for the tip though...
0
 
objectsCommented:
I already showed you how to run it in kiosk mode :)
blocking access to the desktop is nothing to do with your application and can be implemented independently depending on the OS

0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Microsoft Office 2010

This course will introduce you to the interfaces and features of Microsoft Office 2010 Word, Excel, PowerPoint, Outlook, and Access. You will learn about the features that are shared between all products in the Office suite, as well as the new features that are product specific.

  • 3
  • 2
  • 2
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now