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. Advertisements

  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. Advertisements

  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. Advertisements

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:
    706
    Andrew Thompson
    Jan 23, 2004
  2. rfractal30
    Replies:
    0
    Views:
    2,516
    rfractal30
    Apr 11, 2005
  3. rfractal30
    Replies:
    1
    Views:
    581
    rfractal30
    Apr 14, 2005
  4. rfractal30
    Replies:
    0
    Views:
    461
    rfractal30
    Apr 13, 2005
  5. Rohit Gupta
    Replies:
    2
    Views:
    580
    Rohit Gupta
    Jun 24, 2005
  6. news.frontiernet.net
    Replies:
    6
    Views:
    1,447
    news.frontiernet.net
    Apr 16, 2004
  7. JTapio
    Replies:
    1
    Views:
    456
    Andrew Thompson
    Oct 17, 2006
  8. Mithil
    Replies:
    2
    Views:
    7,746
    SamieDee
    Sep 6, 2012
Loading...