This week's book giveaway is in the Testing forum. We're giving away four copies of The Way of the Web Tester: A Beginner's Guide to Automating Tests and have Jonathan Rasmusson on-line! See this thread for details.
How to create another JFrame that you can not leave focus on
posted 13 years ago
I am trying to create a small program that will allow me to adjust the program options. It should open up a new JFrame when the option is clicked from the JMenu. Like most settings options that window will be open, and you can not switch back to the main window unless you click close or cancel from that new window you just opened. I was just wondering how you do this? Do you manipulate the "focus" somehow, or is there a better way to do it. i.e. In IE, if you clicked on Tools->Internet Options, an Internet Options Window will appear, and you can not go back to your main IE window until you close or cancel the Internet Options window (but you can go to other programs). That is the functionality I am trying to mimic.