Two JFrames, one dialog

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

  1. Lynx

    Lynx Guest

    Hello,
    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
    Lynx, Nov 7, 2004
    #1
    1. Advertising

  2. Lynx <> wrote in message news:<mwq9bgfoal72$.1amtawmrb1g0k$>...
    > Hello,
    > 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


    Can please show us some code.

    use JDialog(JFrame owner) constructor .
    Excluded_Middle, Nov 8, 2004
    #2
    1. Advertising

  3. "Lynx" <> wrote in message
    news:mwq9bgfoal72$.1amtawmrb1g0k$...
    > Hello,
    > 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 ?


    Swing (and AWT) only support "application modal" dialogs.
    Per-frame modality is a long time RFE. See
    http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4080029
    Larry Barowski, Nov 8, 2004
    #3
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Lukasz Indyk
    Replies:
    6
    Views:
    494
    Andrew Thompson
    Jan 23, 2004
  2. rfractal30
    Replies:
    0
    Views:
    2,316
    rfractal30
    Apr 11, 2005
  3. rfractal30
    Replies:
    1
    Views:
    453
    rfractal30
    Apr 14, 2005
  4. rfractal30
    Replies:
    0
    Views:
    367
    rfractal30
    Apr 13, 2005
  5. Rohit Gupta
    Replies:
    2
    Views:
    461
    Rohit Gupta
    Jun 24, 2005
Loading...

Share This Page