Two JFrames, one dialog

Discussion in 'Java' started by Lynx, Nov 7, 2004.

  1. Lynx

    Lynx Guest

    My JFrame (main) creates new Jframe (second), this second creates modal
    JDialog. But this modal JDialog is also modal with the main frame.
    How to make JDialog modal only with the second frame ?
    Lynx, Nov 7, 2004
    1. Advertisements

  2. Can please show us some code.

    use JDialog(JFrame owner) constructor .
    Excluded_Middle, Nov 8, 2004
    1. Advertisements

  3. Swing (and AWT) only support "application modal" dialogs.
    Per-frame modality is a long time RFE. See
    Larry Barowski, Nov 8, 2004
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.