File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Swing / AWT / SWT and the fly likes Disable JFrame Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Disable JFrame" Watch "Disable JFrame" New topic

Disable JFrame

Jennifer Sohl
Ranch Hand

Joined: Feb 28, 2001
Posts: 455
Hi. I am having a problem figuring out how to disable a JFrame. It's kind of tricky.
We have an application we created strictly for shop floor data collection. This application is going to be running on a PC on our shop floor.
We do not want the employees to be able to close out of this application, or even minimize it. So, I decided we could disable the close and minimize buttons on the frame. But if we do that, and we (administrators) need to close the app for some reason, how would we do it without ending the app through task manager?
Any suggestions?

Craig Wood
Ranch Hand

Joined: Jan 14, 2004
Posts: 1535
Jennifer Sohl
Ranch Hand

Joined: Feb 28, 2001
Posts: 455
Works great, Thanks!
I agree. Here's the link:
subject: Disable JFrame
It's not a secret anymore!