This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Focus question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Focus question" Watch "Focus question" New topic
Author

Focus question

Dominik Pawlocki
Greenhorn

Joined: Oct 31, 2001
Posts: 6
Hi all!!!
I wrote a small database and I want the errors to be describen in a small independent window which requests the focus completly.There is an error message (in that error window)and a small "ok" button, and I want to disable focus to my application completly until that button is pressed( then the error window disappears).I thought about the requestFocus() method, but it doesn't disable access to the other windows.I hope I made a clear explain ;-) English isn't my native language.
Thank's for help
Dave Vick
Ranch Hand

Joined: May 10, 2001
Posts: 3244
Dominik
Try a JOptionPane or some other dialog they are modal so will block the rest of the app until they go away.
hope that helps


Dave
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Focus question
 
Similar Threads
Popup window close button
Always stay on top (JFrame)
how to restrict the focus between parent and child JFrame??
Disable JFileChooser Maxmize button in Mac
(SWT/JFace)Questions about pop-up tooltip in treeviewer