• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to create another JFrame that you can not leave focus on  RSS feed

 
Wilson Mui
Ranch Hand
Posts: 140
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Paul Stevens
Ranch Hand
Posts: 2823
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You might want to use JDialog instead.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!