• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Ranch Hand
Posts: 140
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 2823
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You might want to use JDialog instead.
 
reply
    Bookmark Topic Watch Topic
  • New Topic